Make WordPress Core

Opened 11 years ago

Last modified 5 years ago

#23117 new defect (bug)

permalink failed on IIS7 and Reserved Proxy for wordpress 3.5

Reported by: romeoqngo's profile romeoqngo Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5
Component: Permalinks Keywords: needs-patch
Focuses: Cc:


it seems to work fine on local but get into a canonical redirect loop when we deploy to production after we upgrade to wordpress 3.5. We did a little debug and found the issue with permalink in file .\wp-includes\canonical.php at line 42 with new coded "&& !iis7_supports_permalinks()" added in 3.5.

the issue is iis7 does support permalink and so it go into create and redirect to pretty link which use the website URL in wp-admin settings which is the site URL. when it hits the site URL, our reserved proxy write back to the wordpress site on diff server with port and canonical.php think that's incorrect, so it redirect back to the website URL and the loop go on and on.

we found a temp workaround but not desirable, add this "remove_filter('template_redirect', 'redirect_canonical');" in the function.php file in the theme folder you are using. or add a wordpress plugin or simply remove the additional codes in canonical.php file that was added in 3.5. but may cause issue in future upgrade.

Change History (2)

#2 @chriscct7
9 years ago

  • Keywords needs-patch added
  • Severity changed from major to normal
Note: See TracTickets for help on using tickets.