[wp-trac] Re: [WordPress Trac] #4970: Rewrite for Pages is broken if URL has port #

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 13 18:27:24 GMT 2007


#4970: Rewrite for Pages is broken if URL has port #
----------------------+-----------------------------------------------------
 Reporter:  driverkt  |        Owner:  markjaquith
     Type:  defect    |       Status:  new        
 Priority:  high      |    Milestone:  2.3        
Component:  General   |      Version:  2.3        
 Severity:  normal    |   Resolution:             
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by westi):

  * owner:  anonymous => markjaquith
  * priority:  normal => high

Comment:

 I suspect the canocical redirect stuff is causing this.

 Maybe it needs to check {{{$_SERVER["SERVER_PORT"] != 80}}} (or 443) and
 include in the $requested_url:

 {{{
         if ( !$requested_url ) {
                 // build the URL in the address bar
                 $requested_url  = ( isset($_SERVER['HTTPS'] ) &&
 strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://';
                 $requested_url .= $_SERVER['HTTP_HOST'];
                 $requested_url .= $_SERVER['REQUEST_URI'];
         }
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4970#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list