The module in httpd.conf to rewrite is as follows:
LoadModule rewrite_module modules/mod_rewrite.so
path to .htaccess:
c:\wamp\www\magentodev\.htaccess
so in .htacess I have this:
<IfModule mod_rewrite.so> Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_URI} ^/boombottleh2o\+?$ RewriteRule (.*) /gu/boombottleh2o.php [NC,L,QSA] //some other ones </IfModule>
I expected to try:
localhost/magentodev/boombottleh2o
instead:
localhost/magentodev/gu/boombottleh2o.php
it should work because it works on production, but not localhost, I have a wamp server server, and here are a few configurations:
in C: \ wamp \ bin \ apache \ apache2.4.9 \ conf \ httpd.conf:
<Directory "c:/wamp/www/"> Options Indexes FollowSymLinks AllowOverride All Require local </Directory>
this is incorrect, since Anu says that I changed it in C: \ wamp \ bin \ apache \ apache2.4.9 \ conf \ extra \ httpd-vhosts.conf to:
<Directory "C:/wamp/www/"> Options All AllowOverride All Order allow,deny Allow from all </Directory> <VirtualHost *:80> ServerAdmin localhost DocumentRoot C:/wamp/www/ ServerName localhost </VirtualHost>
I could not understand what was wrong, I appreciate any help
source share