Link to home
Start Free TrialLog in
Avatar of yelbow
yelbow

asked on

Apache rewrite

A user can arrive at our site passing various variables in the URL

e.g.

http://mysite.com/?func=search&term=blah&setting=enga
or
http://mysite.com/?func=search&setting=enga&term=blah

I want to be to be able to put a rewrite rule in that will take the value of "setting" and rewrite it to be "engb" regardless of where it is in string.

What would be the rewrite rule?
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Why not do this programmatically when you handle the query string parsing?
Avatar of yelbow
yelbow

ASKER

It's all embedded in third party code which we can't tinker with  - need to handle it on the way in with a mod rewrite or something.
ASKER CERTIFIED SOLUTION
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial