Jim_Gray_43725
Feb 08, 2012Nimbostratus
http redirect based on path and query strings
I have a data group with 166 lines of source and target URLs for redirect. Most source URLs include 1 to 3 different queries. I need to find a way to match an incoming path and each query in any order and possibly with additional queries mixed in.
For example:
If one of the class entries is:
www1.domain.com/abc/xyz.do?aaa&bbb&ccc www2.domain.com/new/path.do?zzz&yyy&xxx
All of the following must match and redirect to the www2 URL:
www1.domain.com/abc/xyz.do?bbb&ccc&aaa
www1.domain.com/abc/xyz.do?aaa&bbb&ccc&ddd
www1.domain.com/abc/xyz.do?aaa&ddd&ccc&bbb
Does anyone have an elegant solution for this?