mguned_60772
Feb 19, 2010Nimbostratus
URL Rewrite findstr
Trying to do the following:
Redirect -
https://oldsite.com/xxx/xxx/xxx.asp?firststring=FIRSTxxxx_xxxxsecondstring=SECOND
to -
http://newsite.com/xxx.aspx?xxxxxx=FIRSTxxxxx=SECOND
Here is what I have tried to no avail:
elseif { [HTTP::uri] contains "/xxx/xxx/xxx.asp" } { set FIRST [findstr [HTTP::uri] "xxx" 4 ";"] set SECOND [findstr [HTTP::uri] "xxx" 6 ";"] HTTP::redirect "http://newsite.com/xxx.aspx?xxx=$FIRSTxxx=$SECOND"}
Any help is much appreciated!
Cheers!