[wp-trac] Re: [WordPress Trac] #6778: Detect when the config will cause infinite loop

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 28 22:12:54 GMT 2008


#6778: Detect when the config will cause infinite loop
----------------------------+-----------------------------------------------
 Reporter:  Analogpoint     |        Owner:  anonymous
     Type:  enhancement     |       Status:  reopened 
 Priority:  normal          |    Milestone:  2.9      
Component:  Administration  |      Version:  2.5      
 Severity:  normal          |   Resolution:           
 Keywords:  needs-patch     |  
----------------------------+-----------------------------------------------
Changes (by westi):

  * keywords:  has-patch => needs-patch
  * priority:  low => normal
  * summary:  Add notice about www preference enforcement => Detect when
              the config will cause infinite loop

Old description:

> Behavior:
>
> If you put in http://www.domain.com in the "Wordpress Address" setting,
> then Wordpress will automatically do a redirect from http://domain.com to
> http://www.domain.com.  Many hosting packages allow the user to deal with
> www and non-www versions of their domain.  This will cause an infinite
> redirect loop if, for example, the "Wordpress Address" is set to
> http://www.domain.com and the hosting setting is set remove the www from
> the domain address-- to redirect http://www.domain.com to
> http://domain.com.
>
> Expected behavior:
>
> When setting the "Wordpress Address" setting, it should have a note there
> that the non-www version will automatically be redirected to the www
> version of your domain, or vice-versa, according to the situation.  Or it
> should have the option to enable or disable that redirect.

New description:

 Behavior:

 If you put in http://www.domain.com in the "Wordpress Address" setting,
 then Wordpress will automatically do a redirect from http://domain.com to
 http://www.domain.com.  Many hosting packages allow the user to deal with
 www and non-www versions of their domain.  This will cause an infinite
 redirect loop if, for example, the "Wordpress Address" is set to
 http://www.domain.com and the hosting setting is set remove the www from
 the domain address-- to redirect http://www.domain.com to
 http://domain.com.

 Expected behavior:

 When setting the "Wordpress Address" setting, it should detect if the
 canocical code will cause an infinite redirect loop and warn/correct the
 mistake

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


More information about the wp-trac mailing list