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”

Pages: « 2 [1] Show All

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

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

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

    Thanks!! You just saved me!

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

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

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

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

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

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

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

    Excellent!

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

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

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

    It works! Thank you very much!

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

  11. 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 [...]

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

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

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

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

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

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

    thanks for the advice!

    I am also trying to experiment xampp this time…

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

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

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

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

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

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

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

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

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

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

    Thanks, worked great!

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

    Thanks, worked great. :)

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

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

    thanks ! great advice :)

Pages: « 2 [1] Show All

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 - wordpress permalinks xampp - 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 - 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 - htaccess for xampp on mac - wordpress hebrew permalinks not working - full article htaccess doesnt work in wordpress - mod_rewrite htaccess in xampp - wordpress xampp error 404 - xampp permalink error wordpress -