I have a query string mysite.com/?local=1 local varies from 1 – 600.
For each local is a city name. How can I rewrite the url so that it appears mysite.com/cityname/. I do not mind writing a scenario for each such as if (local ==1){cityname = boston;}.
Is what I’m asking for even possible? So I’d like to take mysite.com/?local=1 and turn it into mysite.com/boston/.
index.php:
.htaccess:
Basically what this combo does is if a GET string with variable ‘local’ is passed it will do a redirect with the city id converted to a name. After that you just take the query string and do whatever you want with it