Flipkart

Thursday, March 25, 2010

Enable mode_rewrite module in xampp

If you running XAMPP on Windows and unable to figure out how to enable mod_rewrite in apache then here is the solution and it is very simple

Search for httpd.conf file in xampp folder it should be located at xampp/apache/conf and open file in any editor and search for below line:

#LoadModule rewrite_module modules/mod_rewrite.so

and just remove the "#" symbol then it will be like

LoadModule rewrite_module modules/mod_rewrite.so

Next, search for "AllowOverride None" and change it to "AllowOverride All". It is correct once and wrong twice in the file.

Once you have made these changes, save httpd.conf file and restart Apache for mod_rewrite to take effect.

No comments:

Post a Comment