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.


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

Pages: [2] 1 » Show All

  1. microbia
    June 1st, 2009 23:53
    41

    Thanks for the tip! You saved my bacon!

  2. atsil
    April 17th, 2009 07:35
    40

    perfect solution. thanx a lot!!

  3. Webmist
    February 17th, 2009 11:56
    39

    Hey I just found this -Wordpress site was working fine online but couldnt get it to show pages on Xampp – your advice was spot on!

    Many thanks for sharing your expertise!

  4. Getting Started with Computer » 修改永久链接的问题
    February 13th, 2009 10:10
    38

    [...] 又找到这一篇: WordPress Permalinks Does Not Work in xampp Setup http://www.mydigitallife.info/2006/03/08/wordpress-permalinks-does-not-work-in-xampp-setup/ [...]

  5. SriMathe
    February 11th, 2009 22:03
    37

    I don

  6. Romeo
    February 5th, 2009 16:56
    36

    Thanks a mill you just saved me stress, a headaiche and some serious painkillers

    But I made all my AllowOverride(s) for it to work and now it’s tip-top.

    Sharp

  7. Konc3pto
    November 27th, 2008 06:22
    35

    Thank you so much for this quick help!!!
    Sure made my day!!!

  8. FattIntek
    November 19th, 2008 21:11
    34

    Reason why is great to be a gay :P
    You can say anything (”Wow, do my balls hurt!”) and not worry about what people will think. It was joke :D

  9. sam
    October 30th, 2008 23:54
    33

    thanks for the quick fix.

  10. Icon
    October 24th, 2008 14:18
    32

    I was experiencing the same problem and your post has saved my day. Thanks ! :D

  11. Tom Bones
    October 20th, 2008 14:11
    31

    Thanks for that! Was wondering why that wouldn’t work..

  12. TechPuree
    October 10th, 2008 13:09
    30

    Was facing the same problem with XAMPP in my local installation. Googled for the solution and thankfully came across your post. Nice and useful write-up. Great!!

  13. Keir
    October 8th, 2008 19:32
    29

    Awesome post, worked a dream – many thanks!
    Worth noting the same issue is apparent with installations of Joomla! on xampp.

    PS don’t forget to save the file once you’ve edited (speaking from experience – 1 too many 7ups!)

  14. HydroMan
    September 27th, 2008 11:10
    28

    I had a similar problem with a LAMP server, issue was due to symlinks not being enabled.

    Simply went to vhosts/vhost.conf and added allow all statement..

  15. dikma.web.id » Blog Archive » WordPress Permalinks Does Not Work in xampp Setup
    September 25th, 2008 09:29
    27

    [...] sumber : http://www.mydigitallife.info/ [...]

  16. 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 to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

xampp htaccess - xampp mod_rewrite - wordpress permalinks xampp - wordpress permalinks apache - xampp wordpress permalinks - xampp mod_rewrite windows - xampp htaccess mac - wordpress permalinks xampp error - wordpress permalinks on xampp - permalink not found wordpress - permalinks not working wordpress xampp - wordpress rewrite not working - pretty permalinks xampp - xampp wordpress rewrite - wordpress xampp permalinks - wordpress apache configuration - wordpress apache rewrite permalink not working - wordpress permalink not found on this server - permalinks xampp wordpress - wordpress permalink xampp - hotmail checking does not work on netbook - xampp https .htaccess - xampp 404 - xampp permalinks - .htacces XAMPP - changed permalinks and pages not working xampp - enable htaccess in xampp - mod_rewrite xampp windows - setting up wordpress on a mac server permalinks - xampp wordpress permalink - xampp multiple wordpress sites - configure xampp to work with htaccess - wordpress permalinks apache - xampp mod_rewrite - To use custom permalinks in WordPress xampp-based - vista apache htaccess does not work - wordpress permalink does not load default page - worpress permalinks dates and names htaccess images - xamp on netbook - xampp .htaccess mac - joomla xampp mod_rewrite - setup .htaccess xamp - xampp and htaccess - custom permalinks xampp don't work - install wordpress at xampp problem htaccess - wordpress, Not found, permalinks - wordpress htaccess xampp - xampp htaccess vista - "hash sign" in welsh - wordpress apache permalink -