How To Change Your Permalinks Structure In WordPress

permalinksPermalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings. A permalink is what another weblogger will use to link to your article (or section), or how you might send a link to your story in an e-mail message. The URL to each post should be permanent, and never change — hence permalink.

Most of the time I tell people to change their WordPress permalink structure, it’s to get rid of the dates in their permalink structure. If their content is “timeless”, it just shouldn’t be there. In my opinion, the only type of site that should have dates in their permalink structure is a news site. All other sites should strive to write content that is “timeless”.

There are two steps in changing your WordPress permalink structure. The first is simple, go to Settings -> Permalinks and select Post name:

If you don’t have the post name option yet, you’re not on WordPress 3.3, the release of which is imminent. You could wait a bit for the update, or you could just add /%postname%/ as a custom permalink structure.

The second step is to redirect your old permalinks to your new ones. To do that, you have to add redirects to your .htaccess file, I have created a little tool that generates these redirects for you based on your domain and your old permalink structure. To use this tool, click the button:

There you have it! If you copied the redirect into your .htaccess, you should test whether it’s working. If it’s not, chances are you’re not allowed to use RedirectMatch, which makes changing your WordPress Permalink Structure a bit harder and not something I can easily cover in this post.

Let me know whether the turtorial works for you and what you’ve done to your permalinks!

Leave a comment