WordPress: Force Lowercase URLs

Thoughts from the team
By    | October 9, 2012 | Tools & Plugins,

We’re currently migrating a website which has some URLs with uppercase letters to WordPress.  WordPress slugs are always lowercase.  We are creating identical URLs, but the case will be different.  This will result in a bunch of 404 errors for anybody linking to a capitalised version of a page.

We could just setup a 301 redirection for each uppercase url to the lowercase version, but that would be tedious.  Instead we’ve created a little WordPress plugin that checks if the URL contains uppercase letters and performs a 301 redirection to the lowercase URL.

Go get WordPress: Force Lowercase URLs on GitHub now!

 

More like this