By kenschnall
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?
Thank you
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
Hey all,
Such redirects are usually experienced when you have a misconfiguration in your .htaccess file or as a whole your Apache configuration somewhere.
To avoid such situations, I’ll recommend to avoid using too much Rewrite rules for single purposes but rather try to find a Rewrite solution for multiple scenarios.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.