I need some assitance with a mod_rewrite rule.
I am setting up a SEO Friendly director of names and have run into some problems I know there is an easy answer for but I cant get it to work to save my life.
Here is a sample URL's that we would like to publish
http://www.foo.com/bar/ca/marina-del-ray/first-last.html
The backend URL would need to look like the following
/bar/?searchState=ca&searchCity=marina+del+ray&firstName=first&lastName=last
As you can see for the city I need to replace the "-" with "+"
Any assitance would be greatly appriciated, I would like to be able to make this rule dynamic enough that if a city name contains 1 or 15 words it will still tranfer over without having to create 15 seperate rules for each permiation.
Many thanks for any input or solutions.