[wp-trac] [WordPress Trac] #23117: permalink failed on IIS7 and Reserved Proxy for wordpress 3.5
WordPress Trac
noreply at wordpress.org
Fri Jan 4 06:30:34 UTC 2013
#23117: permalink failed on IIS7 and Reserved Proxy for wordpress 3.5
-----------------------------+--------------------------
Reporter: romeoqngo | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Permalinks
Version: 3.5 | Severity: major
Keywords: |
-----------------------------+--------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23117>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list