How to enable rewrite module in WAMP, XAMPP and Apache
Posted: Mon Jun 28, 2010 9:59 pm
If you are using XAMPP or WAMP, you will find that rewrite module (mod_rewrite) is not enabled by default. Here are the steps to enable it manually.
- Open apache’s configuration file using your favorite text editor. The configuration file generally locates at:
If you are using XAMPP or WAMP package then you will find the file at:
Code: Select all
{apache_dir}/conf/httpd.conf
Code: Select all
{xampp_dir}/apache/conf/httpd.conf {wamp_dir}/apache/conf/httpd.conf
- Search for the following string:
and uncomment it (remove the ‘#’ sign).
Code: Select all
#LoadModule rewrite_module modules/mod_rewrite.so
- Now search for another string AllowOverride None and make sure you find it within the section below.
Replace AllowOverride None by AllowOverride All
Code: Select all
<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory>
- Finally save the changes, close your text editor and restart your apache server.