A Quick Note on Installing Worpress and Permalinks

As you may have noticed this blog is driven by WordPress, the very fine blogging platform. I’ve installed a number of WordPress implementations over the last year but this is the first one I’ve had any problems with, and this is why.

Usually, I settle for the standard, prettyish permalink setting that includes the index.php prefix. So the result is a link that looks like “…/index.php/2006/12/10/post-name/” and thats been fine. I’ve been limited to this because for the most part I use IIS servers. For this blog, however, I thought I would go with a Linux hosting package and take advantage of mod_rewrite to have proper pretty permalinks. So I set up the main part of the site, which can be found at http://www.oakinnovations.co.uk/ and wrote a nice little .htaccess file to enable pretty permalinks for those pages. And it works a treat.

Now, I’d heard that WordPress automagically sets up .htaccess for you once you choose the permalink options, unfortunately, this just wasn’t the case for me. Yes, it created a .htaccess file and seemed to add the correct rules but it just wouldn’t work. After much searching It was starting to look as if this may be a problem with my host, godaddy.com. Reading these forum posts would lead you to think the same I’m sure.

I’ve used Godaddy before for other sites and not had any problems, in fact, I’ve found them to be very good, so I wasn’t going to believe that they could have a problem as fundamental as detailed in the forum posts above. Thats when it struck me. This WordPress installation is sitting in a sub directory called “blog” but for some reason, the mod_rewrite rules seemed to assume that WordPress was in the root directory of the domain. So, I copied the WordPress generated rules and popped them in my main htaccess file and … bingo! Success. So for all those out there experiencing similar problems, and theres seems to be a few, try that approach and see where it gets you.