Mar 8, 2006
My Digital Life Editorial Team

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.

Related posts:

  1. Easily Set Up Web Server with XAMPP
  2. Install, Setup and Configure CGI and Perl in Windows XP
  3. Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 – Part 2
  4. Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 – Part 3
  5. Install AWStats- Free Logfile Analyzer for Site Statistics

49 Comments

  • Thought I couldn’t find any solution to this problem on easyPHP. But this is truly what I am looking for just a couple of days now. thanks to you!

  • did not work for me, had to set permalinks back to default wp 3.1, xammp portable lite 1.7.3

  • was very helpful for me. Thanks a lot. ModeRewrite was already on in my local xampp – but the AllowOverride was it! Thanks!

  • Thank You…I was having problem with EasyPHP + wordpress… it's ok now

  • THANKS! I had this same problem with EasyPHP on a Windows platform. Thank you for the clear explanation.

  • Thanks a lot! u help me so much..!!

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

  • Thanks,

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

  • Thanks for the tip! You saved my bacon!

  • perfect solution. thanx a lot!!

  • 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!

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

  • I don

  • 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

  • Thank you so much for this quick help!!!

    Sure made my day!!!

  • 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

  • thanks for the quick fix.

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

  • Thanks for that! Was wondering why that wouldn't work..

  • 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!!

  • 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!)

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

  • Thanks A LOT! Works great!

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

  • Thanks!! You just saved me!

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

  • Gracias por la información.

    Me ha ido genial.

  • Muy buen post.

    Lo he enlazado en mi blog, donde añado algo de información:
    http://siloco.es/2008/06/problema-con-permalinks-…
    Un saludo

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

  • Excellent!

  • It works! Thank you very much!

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

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

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

  • 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!

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

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

  • 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!

  • thanks for the advice!

    I am also trying to experiment xampp this time…

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

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

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

  • Hi! Why I can't fill my info in profile? Can somebody help me?

    My login is Kisakookoo!

  • Thank you mate,

    you have just saved me few hours of struggling.

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

  • Thanks, worked great!

  • thanks ! great advice :)

Leave a comment

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Subscribe

Free email subscriptions
Get latest updates in email for free:

Translate This Page