Link to home
Create AccountLog in
Avatar of coolispaul
coolispaulFlag for United States of America

asked on

using rewrite in htacess


i am trying to use htaccess to rewrite the URLS on my site.
For example, i have:®ion_id=1

i want it to read the appropriate names of regions/countries

in this case it would be:

I was told i could use RewriteMap  but this causes a server error.

Could anyone help me accomplish this?

Avatar of hielo
Flag of Wallis and Futuna image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of coolispaul


ah ok but what happens when the region changes - i.e.
Given a url with the following "pattern":

it should do an "internal redirection" to /region.php?country=XXX&region=YYY

regardless of what value you actually use/substitute for XXX and YYY.

In case it's not clear, by "internal redirection" I mean that the users browser will still display:

even though the server is actually executing:®ion=YYY