Solution: WordPress Nice Permalinks Not Working With Apache

By angsuman, Gaea News Network
Monday, November 16, 2009

WordPress nice permalinks is a way to create search-engine-friendly url’s for WordPress posts and pages. Unfortunately they sometimes do not work out-of-the-box even after choosing your permalinks structure in WordPress options. I have found the issue in Cent OS 5 as also in Fedora versions before.

First check whether your .htaccess file is present in  WordPress root directory and writable by apache user. If not fix it by using chmod command and update the permalinks structure again. This should take care of the problem. If that is not the issue then read on for the other most common issue.

Open httpd.conf file and search for AllowOverride. httpd.conf is most likely located in /etc/httpd/conf directory.

Leave the first match intact and go for the second one. You will find an entry like:

AllowOverride None

Change it to:

AllowOverride FileInfo

Alternateively you can use:

AllowOverride All

Now restart the web server. On Cent OS and Fedora that would be:

service httpd restart

Your permalinks should now be accessible.

AllowOverride controls whether .htaccess files are processed per directory. They have a performance impact and hence you can only enable it just for your WordPress directory. Read the fine Apache httpd manual more details or just look into the conf file for examples on how you can do it.

You can know more about nice permalinks in WordPress here.


May 14, 2010: 5:41 pm


May 7, 2010: 1:21 am

OMG! you are the best!!! i too could kiss you for this!

March 24, 2010: 11:22 am

I could kiss you for this.

February 13, 2010: 2:59 am

Thanks so much for this post. I threw a Apache install on a VM for testing and could not get mod_rewrite to work. Everything seemed to be there but it still wasn’t working… learned something new!

Much appreciated.
Kind regards,

February 3, 2010: 1:23 pm

Thanks - been banging my head against the wall for ages and this fixed it!

November 17, 2009: 12:34 am

for plugins and theme of word press

will not be displayed