I am looking for your help on for writing mod_rewrite URL for the below URL
mywebsite.com/cars.php?model=GM&make=Pontiac&year=2009
I want to access the above URL using
mywebsite.com/cars/GM/Pontiac/2009
and the last two parameters are optional ..
Could somebody please advise ?
Regards
Kiran
Assuming we’re in the document root:
This enforces a strict ordering, i.e. the arguments are expected to be “model, “make” and “year” in that order.
You probably also want to add: