How to enable rewrite module in XAMPP, WAMP and Apache ?

How to enable rewrite module in XAMPP, WAMP and Apache ?

In most of case, you may face a common issue that rewrite module (mod_rewrite) does not work properly..

You are getting this error because of it is not enabled by default in setting of Apache's configuration.

You can solve this by enable it manually with simple steps.

  1. You need to simple open your apache’s configuration file that is generally located in {path of apache directory}/conf/httpd.conf.
  2. Find the string "#LoadModule rewrite_module modules/mod_rewrite" in httpd.conf file. Remove # sign to uncomment it because # sign indicate that this is comment part.

    #LoadModule rewrite_module modules/mod_rewrite.so 
    To
    LoadModule rewrite_module modules/mod_rewrite.so 
    

  3. Now find other string AllowOverride None and change it with AllowOverride ALL.
  4. Now save the changes what you have done and restart your server.

Phone: (+91) 8800417876
Noida, 201301