Good Day, I have a nginx server and a WordPress site. At the moment my pages are available by url with a different case (for example, about-us and AbOuT-Us opens the same page). How to redirect all pages to lower case, but keep the ability to open files with different case (for example, in Woocommerce there are files like Woocommerce.js)?
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!
Heya, found this plugin that supposedly will do what you`re asking: https://wordpress.org/plugins/uppercase-to-convert-lowercase-in-url/
Hey friend,
You can supposedly use perl to accomplish this in the Nginx config. Have you tried Wordpress plugins that claim to do this first? I don’t know if they do it by writing rules to .htaccess (Apache only, of course), but it might be worth a try:
https://wordpress.org/plugins/wp-force-lowercase-urls/
Otherwise it looks like this describes the process of forcing it at the Nginx layer:
https://www.mybluelinux.com/rewrite-uri-to-lowercase-in-nginx-and-apache-webserver/
Jarland
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.