2.3.1.8. Setting up a redirect to an address with www or without www
Warning!
In some CMS own mechanisms of redirection and linking to the site address are used, so they must be pre-configured using the appropriate instructions:
- WordPress:
- Openup site settings.
-
- "Disabled" - redirect is not performed.
- "www.example.com → example.com" — for all requests directed to the site address with www, the 301st redirect to the site address without www will be performed.
- "example.com → www.example.com" — for all requests directed to the site address without www, the 301st redirect to the site address with www will be performed.
- "* → example.com" - for absolutely all requests that the site must process, the 301st redirect to the site address without www will be performed.
- "* → www.example.com" - for absolutely all requests that the site should process, the 301st redirect to the site address from www will be performed.
- If the site has been added aliases, they will also be displayed in the list and you can forward all requests to one of them.
- Save your changes.
- Wait approximately 15-30 minutes for the changes to take effect.