[wp-trac] [WordPress Trac] #6890: Canonical redirection broken for empty host in 'home' option

WordPress Trac wp-trac at lists.automattic.com
Thu May 1 08:36:03 GMT 2008


#6890: Canonical redirection broken for empty host in 'home' option
----------------------+-----------------------------------------------------
 Reporter:  thenlich  |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:           
Component:  General   |     Version:  2.5.1    
 Severity:  normal    |    Keywords:           
----------------------+-----------------------------------------------------
 The canonical redirection of the host part (e.g. www.example.com vs
 example.com) is broken if get_option('home') returns an empty host part.
 It returns an invalid redirect in this case.

 Setting the 'home' option to an empty host name (e. g. '/') is necessary
 if the blog needs to be reachable from different domains or protocols
 (HTTP/HTTPS) without redirecting to a particular one, or when the
 resulting HTML output should be relocatable (not contain protocol nor
 hostname).

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6890>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list