Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
website.com/folder redirects to www then to back non-www
When I go to website.com/folder, my website instantaneously goes to www.website.com/folder (I can’t tell if there is a / at the end of the url, because it happens so fast) and then it goes back to website.com/folder/.
The website does not redirect when I simply go to website.com/folder/ (with the / at the end).
I followed redirect www to non-www digitalocean guide but it is frustrating that my website goes from non-www to www then back again only for this instance.
Can anyone offer any advice as to how to make my website not do this behavior?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×