How To: Get Mod Rewrite working on Xampp

Want a workable test environment on your Xampp server to use mod rewritten urls for seo purposes? After doing some great research its easy as pie.

Step 1:

Open:

1
C:\xampp\apache\conf\httpd.conf

Step 2:

Find:

1
2
3
4
5
6
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

Change:

1
AllowOverride None

To:

1
AllowOverride All

Step 3:

Find:

1
#LoadModule rewrite_module modules/mod_rewrite.so

Remove:

1
#

Close File & Save

Last but not least close the file and save then go to and run:

1
C:\xampp\xampp_restart.exe

That way Xampp will restart apache and allow you to use mod rewrite, pretty simple and very easy to follow.

Continue Reading

Leave a Reply