mod_rewrite
Posted: Sat Feb 11, 2006 10:07 pm
Hi I am having trouble figuring out how to set up the htaccess file. This is what I have.
If someone clicks on a link like http://mydomain/car/13.html it is supposed to display a list of all the cars available for the category.
If someone clicks on a link like http://mydomain/vehicle/13.html it is supposed to show the details on that vehicle.
What it is actually doing though is showing the details if you go to the first url though.
Code: Select all
RewriteEngine on
Options +FollowSymlinks
RewriteBase /projects/cms/
RewriteEngine on
RewriteRule ([^/]+)\.html$ index.php?car=$1
RewriteRule ([^/]+)\.html$ description.php?vehicle=$1If someone clicks on a link like http://mydomain/vehicle/13.html it is supposed to show the details on that vehicle.
What it is actually doing though is showing the details if you go to the first url though.