Wednesday, February 16, 2011

Enabling Mod Rewrite in Xampp or Wamp server in Windows

In this article I'll show you how to enable Mod Rewrite in Xampp and Wamp server.


Firstly for the Wamp server. It is easy.
Left click the Wamp server icon and then goto Apache Modules->rewrite_module. Click it to enable it. Then restart the server and you are good to go.



For Xampp it is a bit cumbersome but not that hard.

Goto your Xampp installation directory->apache->conf and open httpd.conf in your notepad.
Using the find tool search the line saying
#LoadModule rewrite_module modules/mod_rewrite.so
Uncomment the line by removing the '# ' sign infront of it. Now it should look like
LoadModule rewrite_module modules/mod_rewrite.so
Save the file and restart the server.

Thats it, now mod Rewrite is enabled in both of the servers.

No comments:

Recent Posts