[wp-trac] Re: [WordPress Trac] #5306: Canonical redirect conflicts with hosting provider's redirect

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 7 20:34:35 GMT 2008


#5306: Canonical redirect conflicts with hosting provider's redirect
-------------------------------+--------------------------------------------
 Reporter:  vocaro             |        Owner:  markjaquith
     Type:  enhancement        |       Status:  assigned   
 Priority:  normal             |    Milestone:  2.6        
Component:  General            |      Version:  2.3        
 Severity:  normal             |   Resolution:             
 Keywords:  reporter-feedback  |  
-------------------------------+--------------------------------------------
Changes (by markjaquith):

  * status:  new => assigned

Comment:

 Detecting redirects is tricky.  And it can't be done on the fly -- too
 slow.  Perhaps it could be done when you update your General settings.  I
 don't know if this is widespread enough to justify all that code.  I'd
 think that people who want a canonical domain would be consistent about it
 and not choose a web host redirect feature that points to the opposite of
 what they use on their blog.

 Simple idea of how it could work on the General settings page: when you
 submit the form, WP does an HTTP HEAD on the main page of the blog, and
 determines if a 30x is returned to a new domain.  If so, it updates the
 domain in {{{siteurl}}} and {{{home}}} -- maybe tells the user why the
 setting was overridden.

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


More information about the wp-trac mailing list