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.

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

Pages: 1 2

  1. richo
    November 18th, 2009 17:14
    43

    Wonderful I had no idea about Allowoverride is default None for my vhost. When adding it to my vhost Directory directive all is working fine

    Thanks a lot!
    -r-

  2. Sean
    July 14th, 2009 01:06
    42

    Thanks,

    Love it when someone knows what they are talking about. Perfect solution!

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

    Thanks for the tip! You saved my bacon!

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

    perfect solution. thanx a lot!!

  5. 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!

  6. 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/ [...]

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

    I don

  8. 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

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

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

  10. 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

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

    thanks for the quick fix.

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

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

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

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

  14. 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!!

  15. 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!)

  16. 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..

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

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

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

    Thanks A LOT! Works great!

Pages: 1 2

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.

New Articles

Incoming Search Terms for the Article

wordpress permalinks xampp - xampp mod_rewrite - wordpress mac - permalink xampp - wordpress permalinks object not found - enable .htaccess xampp - xampp wordpress permalink - xampp permalinks - .htaccess in xampp - permalinks on Xampp wordpress - xampp enable permalink - xampp wordpress permalinks - enabling .htaccess in xampp - xampp ignores htaccess - htaccess not working after wordpress upgrade - mod_rewrite xampp mac dont work - xampp mod_rewrite not found - xampp permalink - xampp mac mod_rewrite get 404 - download xampp di server indonesia - wordpress permalink 404 - xampp Server error! tried to change permalinks - hebrew permalinks - xampp htaccess - new permalink does not work wordpress category - wordpress permalink does not work - wordpress permalink Not Found - xampp + "enable perl" - getting rewrite_module to work on xampp on mac - xampp wordpress mac Object not found - wordpress Not Found - xampp htaccess rewrite not working - wordpress mod_rewrite not working local server - apache permalinks wordpress - permalinks not working with XAMPP - wordpress xampp permalink - wordpress permalinks not working - wordpress permalinks 404 xampp - xampp setting rewrite_mod apache - xampp: problemas com o mod_rewrite - permalink wordpress for desktop XAMPP 500 error - permalink wordpress for desktop 404 error - xampp on server 2003 wordpress - xampp enable htaccess - htaccess ignore directory rewrite wordpress - xampp htaccess wordpress - arabic wordpress+permalinks - wordpress permalinks do not work - .htaccess xampp mod_rewrite - situs download audio music untuk wordpress xampp -