WordPressers – make your URLs readable!

I’ve noticed that quite a few folk who have installed their own version of WordPress (as opposed to those that use WordPress.com) haven’t got round to making the URLs (the bit that appears in the address bar of a browser) of their posts ‘human readable’.

In other words, they look like http://www.myblog.com/?p=1027 rather than http://www.myblog.com/postsubject.

Why would you want to make your links appear in this way?

  1. It helps in search engine optimisation – if the link says something about the content, Google etc like it
  2. It makes it easier for people to know what they are getting before they follow a link to your site
  3. It probably helps accesibility-wise
  4. IT JUST LOOKS NICER!

That’s enough reasons. Anyway, if you are a WordPress user, changing the way your post URLs – or ‘permalinks’ as they are known – is pretty easy. All the options are in the control panel, just click Settings then Permalinks and choose an option from:

  • Default: http://davepress.net/?p=123
  • Day and name: http://davepress.net/2008/06/17/sample-post/
  • Month and name: http://davepress.net/2008/06/sample-post/
  • Numeric: http://davepress.net/archives/123

I use the second option, day and name. Once you have made your choice, just hit Save. That should be it.

The only complication because of the way a file is setup on your server, called .htaccess. For WordPress to make the changes to your post URLs, it needs access to write to this file. If it, can’t, it will provide you with the code you need to paste into your .htaccess file to get it all to work. Don’t worry, this is pretty simple and you should be able to do it within your web host’s control panel.

Another thing not to worry about are all those links out there on the web linking to your old, number based, post URLs – these will still work!