News & Views.

The latest news, web designs and digital projects happening at Storm.

Sharing is caring:

WordPress: Force Lowercase URLs

Adam Pope Profile Image

Adam Pope
October 9, 2012

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!