|Posted: 08 October 2010 at 10:19am
I am trying to write a rewrite condition that basically looks to see if a stateCode included as query string parameter belongs to a pre-determined list of state codes. If it is one of the state codes in the list then, it redirects to a different url and passes the state code as a query string to this new url.
Here is an example:
pre-determined state code list: AL, CA, NY, PA, MO
Incoming URL: www.mysite.com/dosomthing?stateCode=MO
New URL: www.adifferentsite.com/dosomthingElse?stateCode=MO
Incoming URL: www.mysite.com/dosomthing?stateCode=FL
New URL: no rewriting required in this case since the state code isnt there in the list.
I really appreciate any help with this regards.