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.


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

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

    Thanks,

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

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

    Thanks for the tip! You saved my bacon!

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

    perfect solution. thanx a lot!!

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

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

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

    I don

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

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

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

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

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

    thanks for the quick fix.

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

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

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

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

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

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

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

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

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

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

    Thanks A LOT! Works great!

  18. Phil McThomas
    August 4th, 2008 09:27
    25

    Just adding my thanks – I’m trying to get CodeIgniter to work: same issue, same solution.

  19. Brett
    July 13th, 2008 06:43
    24

    Thanks!! You just saved me!

  20. Rob Thunder
    July 3rd, 2008 01:59
    23

    Gee thanks! I’m not even using XAMPP but rather have a home development server set up by installing everything separately (e.g. Apache, PHP, Perl, MySQL, etc.) Everything on my Wordpress blog installation was working great except Permalinks. Got Wordpress to change the links in the HTML but clicking on the links kept yielding ‘page not found’ errors. Your fix worked great.

  21. siloco
    June 26th, 2008 18:44
    22

    Gracias por la información.
    Me ha ido genial.

  22. Medianero
    June 25th, 2008 21:23
    21

    Muy buen post.
    Lo he enlazado en mi blog, donde añado algo de información:
    http://siloco.es/2008/06/problema-con-permalinks-de-wordpress-y-mod_rewrite-en-apache/
    Un saludo

  23. Problema con permalinks de wordpress y mod_rewrite en apache - Siloco
    June 25th, 2008 21:11
    20

    [...] My digital life [...]

  24. Johannes
    June 21st, 2008 00:27
    19

    Excellent!

  25. Wut I Am » Blog Archive » Wordpress Permalinks 出现 404 错误的解决办法
    June 13th, 2008 16:24
    18

    [...] Google,终于在这篇文章里找到了原因,果然是我本地的 WAMP 没打开 rewrite [...]

  26. islet8
    June 13th, 2008 15:37
    17

    It works! Thank you very much!

  27. Jeff
    May 2nd, 2008 05:34
    16

    Man, I have been trying to figure this out for almost 3 hours.

    I was trying to write a custom htacess on a highly hacked up wordpress core, snd i thought the problem was with some little detail in the syntax of the file.

    This makes alot more sense now.

    THanks a ton.

  28. Webmasterdays » Blog Archive » WordPress Permalinks Does Not Work in xampp Setup
    April 28th, 2008 19:51
    15

    [...] WordPress Permalinks Does Not Work in xampp Setup » My Digital Life [...]

  29. ElectroGeek
    April 24th, 2008 00:31
    14

    Pure genius. This worked liked a charm. This resolved all my permalink issues with Wordpress 2.5 on Xampp. The date and name permalink structure works great now. Thanks again!

  30. g.zhen.ning
    April 13th, 2008 19:39
    13

    好东西,正准备装wordpress来测试theme

  31. Adriano
    March 3rd, 2008 19:05
    12

    i just followed your instructions but it doesn’t work, it returns me a server error.

    The htaccess is written by wordpress so i think it’s without errors.

  32. ncho
    October 19th, 2007 22:45
    11

    thanks for this — i thought i was losing my mind…could not, for the life of me, figure out why my permalinks weren’t working…now i know!

  33. lwean
    October 13th, 2007 14:57
    10

    thanks for the advice!

    I am also trying to experiment xampp this time…

  34. Zack
    June 15th, 2007 12:15
    9

    Is this not working for anyone. For whatever reason, it’s still not working for me… I feel like I’ve tried everything.

  35. Aero
    June 10th, 2007 07:56
    8

    Thanks for the advice. Now my htaccess files work as they should!

  36. Jereme Guenther
    March 14th, 2007 11:09
    7

    Thanks, this was wonderful information. A quick and easy fix, simple to follow but not so many details that I needed to dig through it for information.

  37. Kisakookoo
    January 24th, 2007 03:00
    6

    Hi! Why I can’t fill my info in profile? Can somebody help me?
    My login is Kisakookoo!

  38. Vizualbod
    January 22nd, 2007 03:56
    5

    Thank you mate,
    you have just saved me few hours of struggling.

  39. dex_stern
    December 22nd, 2006 05:31
    4

    Thank you a lot! You’ve just save me from getting insane! :)

  40. Av-
    May 29th, 2006 02:29
    3

    Thanks, worked great!

  41. Av-
    May 29th, 2006 02:28
    2

    Thanks, worked great. :)

    http://www.google.nl/search?hl=en&q=xampp+htaccess&btnG=Google+Search

  42. CesarS
    April 1st, 2006 01:41
    1

    thanks ! great advice :)

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 mod_rewrite - xampp permalinks - wordpress permalink not working - xamp htaccess - wordpress from xampp permalinks - wordpress post tags does not work - mac xampp htaccess - wordpress .htaccess not work - xampp .htaccess mac symlinks - Wordpress mod_rewrite and xampp - XAMPP - wordpress apache conf Permalinks - xampp php does not work - permalinks not working in windows apache - wordpress permalinks xampp - xampp mod_rewrite not working mac - xampp "windows 7 64" - xampp error 404 修改 - allowing permalinks xampp - htaccess file in wordpress xampp - permalink+wordpress+not working - permalinks xampp - wordpress pretty permalinks problem xampp - configure xampp met htaccess - permalink wordpress: not working - wordpress permalink does not work - xampp permalink - xampp .htaccess setup - xampp enable perl in .htaccess - "pretty permalinks" xampp "not working" - Arabic permalinks in Wordpress - wordpress permalinks dont work - xamp wordpress permalink - enable cgi in xampp - wordpress permalinks not found - xampp vhost rewrite mac - wordpress hebrew permalinks not working -