canonical.php - allow redirects for IIS7

  1. Freelance Web Developer

    Hi All,

    Based on changeset 17493 and 17492 ( http://core.trac.wordpress.org/changeset/17493 ) users with IIS will not get automatic 301 redirection based on the canonical url. That stinks. Because it means that every time we upgrade WP we have to edit canonical.php again to 'fix' it. Basically, it means we cannot change the permalink structure without getting dinged in search engines for duplicating content.


    Posted: 6 years ago #
  2. Ipstenu (Mika Epstein)
    Lead Plugin Wrangler

    Read http://core.trac.wordpress.org/ticket/16639 to understand WHY this change was made.

    It's bad practice ANYWAY to change your permalink structure, and yeah, you'll get dinged. The best thing to do, I think, would be to make a change and then ask Google for a ReCrawl. But the alternative to this was not being able to use IIS for WP at all.

    Posted: 6 years ago #
  3. My blog is pretty old and was using /blog/index.php/%category%/%post%/. I just changed that to /blog/%category%/%post%/ was expecting the url to redirect automatically. I edited canonical.php to fix this, and I know eventually search engines will update their indexes. But until this is really fixed, disabling the function in IIS makes it impossible for those folks to change their permalink structure.

    Posted: 6 years ago #
  4. Ipstenu (Mika Epstein)
    Lead Plugin Wrangler

    Versus making it impossible for IIS to use WP at all?

    Lesser of two evils :)

    Posted: 6 years ago #

RSS feed for this topic


You must log in to post.

  • Rating

    2 Votes
  • Status

    This idea is under consideration