WordPress Permalink Change Error

Overview

I was changing the permalinks in WordPress from the default and obscure post/page numbers to a more URL friendly style with the date and title of the post. Once I had changed the permalink settings it loaded the home page correctly but any links away from this page on this site caused an error along the lines of “The requested URL was not found on this server”. This is when Toby came to the rescue with his Google fu.

PHP Mods

The first problem was that the PHP MOD_REWRITE was not enabled. I’m guessing this allowed PHP to write to files on the server. A quick command:
sudo a2enmod rewite
to enable the module and
sudo /etc/init.d/apache2 reload
to reload the server settings in Ubuntu server made this correct. This still did not solve my problem.

Apache AllowOverride

The AllowOverride directive had to be enabled. This was originally set to None but changing this directive in and in to All solved the problem. The second directive is referred to site specific where the [path_to_website] is the root path.

Other Settings

The other things to look out for is a writable .htaccess file in the root directory of the website. SymLinks should be enabled in the Apache configuration for the website too.

About Danny

I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [http://code.google.com/p/energyathome/] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in Website, WordPress and tagged , , , , , , , . Bookmark the permalink.

One Response to WordPress Permalink Change Error

Leave a Reply

Your email address will not be published. Required fields are marked *.

All comments must go through an approval and anti-spam process before appearing on the website. Please be patience and do not re-submit your comment if it does not appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.