WordPress Permalinks Does Not Work in xampp Setup

xampp provides a convenient way to quickly and easily install and setup a web server that works without much configuration. However, permalinks feature won’t work with the default installation of xampp, even though you can properly customize the permalinks structure to create the .htaccess file.

When you click on any permalinks, your WordPress blog will return a 404 error instead, saying the post not found. Instead, you can only access your blog posts via default permalinks structure, which is in the form of http://www.mydigitallife.info/?p=123.

This is because in xampp, mod_rewrite is not enable by default. Beside, AllowOverride directive in Apache configuration file is also set to None by default, causing Apache web server to ignore any .htaccess file, which used to rewrite the permalinks to the post’s actual url.

To use permalinks in WordPress that installed on xampp-based server, edit the httpd.conf that locates in C:\Program Files\xampp\apache\conf directory (folder). Open httpd.conf in any text editor, search for “mod_rewrite”. You should come to a line like this:

#LoadModule rewrite_module modules/mod_rewrite.so

Remove the hash sign (#) from the line. The # indicates the line is not in effect. The changed line should looks like this:

LoadModule rewrite_module modules/mod_rewrite.so

After that, search for “AllowOverride”. You will come to a line like this:

AllowOverride None

If the above line is contained within default directory (mean the directory declaration is just ), then it can be left as it is. Continue searching and you would come to a second instance of AllowOverride which is contained inside your web server’s document root (default for xampp is in Windows). Change the None to All to make the line looks like this:

AllowOverride All

Restart the Apache. Permalinks is working after restart.

Share and contribute or get technical support and help at My Digital Life Forums.



26 Responses to “WordPress Permalinks Does Not Work in xampp Setup”

Pages: [2] 1 » Show All

  1. Arhtur
    August 15th, 2008 04:59
    26

    Thanks A LOT! Works great!

Pages: [2] 1 » Show All

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting


Custom Search

New Articles

Incoming Search Terms for the Article

xampp mod_rewrite - xampp htaccess - mod_rewrite xampp - xampp .htaccess - enable mod_rewrite XAMPP - wordpress permalinks not working - xampp permalinks - xampp wordpress permalinks - xampp AllowOverride - xampp wordpress permalink - wordpress permalink not working - wordpress xampp permalinks - enable mod_rewrite in xampp - xampp enable htaccess - Permalinks not working - xampp apache mod_rewrite - how to enable mod_rewrite in xampp - htaccess xampp - wordpress permalinks apache - XAMPP - permalinks in xampp - permalinks xampp - permalinks do not work wordpress - wordpress permalinks page not found - wordpress permalink does not work - wamp wordpress permalinks - wordpress permalinks - wordpress permalink not found - rewrite xampp - xampp wordpress - xampp enable mod_rewrite - will email work with xampp - wordpress permalink problem was not found on this server. - setting .htaccess in xampp - apache rewrite xampp - xampp permalink wordpress - wordpress xampp - permalink wordpress xampp - wordpress + .htaccess + permalinks + "page not found" - xampp htaccess httpd.conf - wordpress permalink page not found - xampp and .htaccess - XAMPP + htaccess - mod rewrite xampp wordpress - xampp htaccess enable - xampp wordpress permalink not working - wordpress permalinks xampp - xampp authentic windows login - wordpress permalinks not found - xamp mod_rewrite -