New Permalink Structure

This article at Yoast convinced me to update my permalink structure here at longren.org to something a bit more simple.

Previously, I was using a permalink structure like http://www.longren.org/2011/05/26/html5press-1-5/. This is how it was setup in the WordPress permalinks settings:

/%year%/%monthnum%/%day%/%postname%/

The new permalink structure is:

/%postname%/

That will produce URL’s like http://www.longren.org/html5press-1-5/.

That change will make for shorter URL’s, and will no longer show the date in the URL.

I also added this bit to my .htaccess file:

RedirectMatch 301 /d{4}/d{2}/d{2}/(.*) http://www.longren.org/$1

That tells browsers requesting an old URL where the new one is located. It does so by issuing a 301 redirect, which tells browsers the URL has permanently moved. 301 redirects are search engine friendly too.