Enable mod_rewrite in windows , WAMP, XAMPP

Wamp and XAMPP doesn’t come with default rewrite rule enabled, For enabling the rewrite rules in both of them you need to make changes in httpd.conf so that apache can work with rewrite rules.

For enabling the rewrite rules follow these rules:-

1) find httpd.conf (usually this file can be found in folder callled conf , config or something along those lines)

2) Find and uncomment the line LoadModule rewrite_module modules/mod_rewrite.so

3) Find the line with DocumentRoot “C:/path/to/my/root”, There you will find contents like



Make sure the content
inside these two braces looks like


Options All

AllowOverride All


4) All done now restart the Apache server and you will be all good to go

Technorati Tags: ,,,

19 thoughts on “Enable mod_rewrite in windows , WAMP, XAMPP”

  1. Thanks. I’ve been stuck for a while and this is exactly what I’ve been looking for. It’s a pity those who make tutorials on REST API don’t highlight the fact that you will encounter problems if you don’t make these changes.

  2. it didn’t work for me. do you have any clues that i need to look at to resolve the problem.

Leave a Reply