Wednesday 18 September 2013

Mod_rewrite for multiple ids and areas

Mod_rewrite for multiple ids and areas

forgive me but I'm pretty useless with mod_rewrite and could with a hand
with something.
Basically, right now I have my page reflecting the page ID in a way
similar to this:
http://www.url.com?id=X
Where X = whatever the ID is.
However, I need it to look like this:
http://www.url.com/AreaName
Where AreaName is a local area (e.g. /London).
I have about 30 areas, all with different names and of course IDs, how
would I do a rewrite that reflects all /AreaName's to their relevant IDs?
Thanks in advance!

No comments:

Post a Comment