Opened 5 years ago
Last modified 3 years ago
#6778 reopened enhancement
Redirect from domain.com to www.domain.com causes redirect loop — at Initial Version
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Permalinks | Version: | 2.5 |
| Severity: | normal | Keywords: | needs-patch 2nd-opinion |
| Cc: |
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.
