[wp-trac] [WordPress Trac] #10187: wp_redirect and canonical redirect do not work as expected on IIS

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 8 11:30:07 UTC 2010


#10187: wp_redirect and canonical redirect do not work as expected on IIS
------------------------------------+---------------------------------------
 Reporter:  peaceablewhale          |        Owner:  dd32    
     Type:  defect (bug)            |       Status:  accepted
 Priority:  normal                  |    Milestone:  3.1     
Component:  HTTP                    |      Version:  2.8     
 Severity:  normal                  |   Resolution:          
 Keywords:  has-patch dev-feedback  |  
------------------------------------+---------------------------------------

Comment(by dd32):

 I'm honestly unsure of what to do with the status_header() call at this
 stage.

 I'm tempted to restore it to the following to be on the safe side for
 compatibility with other server environments.. This basically restores it
 to pre-3.1 whilst removing the Refresh hacks for IIS.
 {{{
 if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
                 status_header($status)
 }}}

 Reviewing in 3.2 to remove status_header() completely with a move to PHP5
 might be the better ground on this one to call the ticket closed for 3.1

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10187#comment:37>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list