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
AllowOverride All
Restart the Apache. Permalinks is working after restart.
Related Articles
- Easily Set Up Web Server with XAMPP
- Enable MySQL InnoDB Storage Engine Support in XAMPP Installation
- Install, Setup and Configure CGI and Perl in Windows XP
- How to Move WordPress Blog to New Domain or Location
- gmmktime Error in WordPress and MagpieRSS
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working
- Replace Google Blog Search with Technorati for Incoming Links in Dashboard of WordPress
- Using Invisible Counter with Official StatCounter Plugin for WordPress
- Starting Apache HTTPD Failed Due to Cannot Open or No Such mod_bwlimited, mod_log_bytes or mod_bandwidth Files
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin










































July 14th, 2009 01:06
Thanks,
Love it when someone knows what they are talking about. Perfect solution!
June 1st, 2009 23:53
Thanks for the tip! You saved my bacon!
April 17th, 2009 07:35
perfect solution. thanx a lot!!
February 17th, 2009 11:56
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!
February 13th, 2009 10:10
[...] 又找到这一篇: WordPress Permalinks Does Not Work in xampp Setup http://www.mydigitallife.info/2006/03/08/wordpress-permalinks-does-not-work-in-xampp-setup/ [...]
February 11th, 2009 22:03
I don
February 5th, 2009 16:56
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
November 27th, 2008 06:22
Thank you so much for this quick help!!!
Sure made my day!!!
November 19th, 2008 21:11
Reason why is great to be a gay
You can say anything (”Wow, do my balls hurt!”) and not worry about what people will think. It was joke
October 30th, 2008 23:54
thanks for the quick fix.
October 24th, 2008 14:18
I was experiencing the same problem and your post has saved my day. Thanks !
October 20th, 2008 14:11
Thanks for that! Was wondering why that wouldn’t work..
October 10th, 2008 13:09
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!!
October 8th, 2008 19:32
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!)
September 27th, 2008 11:10
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..
September 25th, 2008 09:29
[...] sumber : http://www.mydigitallife.info/ [...]
August 15th, 2008 04:59
Thanks A LOT! Works great!
August 4th, 2008 09:27
Just adding my thanks – I’m trying to get CodeIgniter to work: same issue, same solution.
July 13th, 2008 06:43
Thanks!! You just saved me!
July 3rd, 2008 01:59
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.
June 26th, 2008 18:44
Gracias por la información.
Me ha ido genial.
June 25th, 2008 21:23
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
June 25th, 2008 21:11
[...] My digital life [...]
June 21st, 2008 00:27
Excellent!
June 13th, 2008 16:24
[...] Google,终于在这篇文章里找到了原因,果然是我本地的 WAMP 没打开 rewrite [...]
June 13th, 2008 15:37
It works! Thank you very much!
May 2nd, 2008 05:34
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.
April 28th, 2008 19:51
[...] WordPress Permalinks Does Not Work in xampp Setup » My Digital Life [...]
April 24th, 2008 00:31
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!
April 13th, 2008 19:39
好东西,正准备装wordpress来测试theme
March 3rd, 2008 19:05
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.
October 19th, 2007 22:45
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!
October 13th, 2007 14:57
thanks for the advice!
I am also trying to experiment xampp this time…
June 15th, 2007 12:15
Is this not working for anyone. For whatever reason, it’s still not working for me… I feel like I’ve tried everything.
June 10th, 2007 07:56
Thanks for the advice. Now my htaccess files work as they should!
March 14th, 2007 11:09
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.
January 24th, 2007 03:00
Hi! Why I can’t fill my info in profile? Can somebody help me?
My login is Kisakookoo!
January 22nd, 2007 03:56
Thank you mate,
you have just saved me few hours of struggling.
December 22nd, 2006 05:31
Thank you a lot! You’ve just save me from getting insane!
May 29th, 2006 02:29
Thanks, worked great!
May 29th, 2006 02:28
Thanks, worked great.
http://www.google.nl/search?hl=en&q=xampp+htaccess&btnG=Google+Search
April 1st, 2006 01:41
thanks ! great advice