Forum Moderators: phranque
RewriteEngine on
RewriteRule ^alice.html$ bob.html
with a simple file alice.html.
In my conf file, the loadmodule of mod_rewrite is enabled. Can you please tell me why I get the error 404 Not Found.
The requested URL /test/bob.html was not found on this server.
Is there a way i can make mod_rewrite to work without compiling apache, disturbing the current server?
We use oscommerce for our site, and adding this in .htaccess file really soved my problem :)
"
AcceptPathInfo on
RewriteEngine On
RewriteRule catalog/([0-9]+)/([a-z][0-9]+)/ /catalog/index.php?cPath=$1&osCsid=$2
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule ^(.*) index.php
"
I hope this will help all oscommerce users using apache 2 with seo friendly urls turned on.
Thanks again!