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
- How to Disable WordPress Canonical URL or Permalink Auto Redirect
- Download WordPress 2.3 Release Candidate 1 (RC1) with Tags Support
- Download Previous or Old Version of WordPress
- Paginating or Split WordPress Post or Page with NextPage in WordPress Not Working
- How to Move WordPress Blog to New Domain or Location
- WordPress 2.1.1 Critical Security Alert – Download Upgrade to 2.1.2
- Integrate WordPress including Comments with bbPress Forum using bbSync
- Tag Managing Thing Plugin for WordPress 2.3 or Above










































January 18th, 2010 12:19
Thanks a lot! u help me so much..!!
November 18th, 2009 17:14
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-
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!