For some reason my install of XAMPP didn’t have mod_rewrite
automatically enabled? Not really sure why but basically below are the
instructions on how to enable .htaccess mod_rewrite in xampp.
1. Go to the directory of installation C:\xampp\apache\conf
2. Open and edit httpd.conf in a text editor
3. Find the line which contains
Now restart the apache server.
You can see now “mod_rewrite” in the Loaded Module section while doing “phpinfo()”.
1. Go to the directory of installation C:\xampp\apache\conf
2. Open and edit httpd.conf in a text editor
3. Find the line which contains
and change to#LoadModule rewrite_module modules/mod_rewrite.so
Find all occurrences ofLoadModule rewrite_module modules/mod_rewrite.so
AllowOverride Noneand change to
AllowOverride All
Now restart the apache server.
You can see now “mod_rewrite” in the Loaded Module section while doing “phpinfo()”.
No comments:
Post a Comment