Enable mod_rewrite in xampp

For some reason my install of XAMPP didn’t have mod_rewrite automatically enabled? Not really sure why  but basically below are the instructions on how to enable .htaccess mod_rewrite in xampp.

1. Go to the directory of installation <C:\xampp>\apache\conf

2. Open and edit httpd.conf in a text editor

3. Find the line which contains

#LoadModule rewrite_module modules/mod_rewrite.so

and (uncomment) change to

LoadModule rewrite_module modules/mod_rewrite.so

4. Find all occurrences of

AllowOverride None

and change to

AllowOverride All

I think it appears 2 or 3 times on the configuration file.

5. Restart xampp

That’s it you should be good to go.

Related posts:

  1. How to Enable SSL on Xampp with Vhosts
  2. Install APC on Xampp
  3. Installing LAMP on Ubuntu
  4. Install Python and Django with Xampp on Windows 7
  5. How to install Memcached on Xampp on Windows 7

Aug 25, 2010
  • gabriel

    I use XAMPP to test my applications before sending them to a linux server, and it was very useful tip for me. Thank you!

  • Son Tran

    Thank so much for your articles, useful for me, thanks again!

Twitter Updates