URL format:
http://rs.ovi.com.cn/;ST;P1;P2;P3;P4;P5;P6;TimeStamp;TargetURL
the TargetURL will redirect user to ,it must be URL encoded
So if TargetURL=www.google.com ,will redirect user to www.google.com
How can I use irule to implement this URL rediection?
Thanks in advance
Hello.
Assuming that TargetURL is always in the same place, this should work:
when HTTP_REQUEST {
set dest [lindex [split [HTTP::uri] ";"] 9]
log local0.info "dest = $dest"
HTTP::redirect "http://${dest}"
}
It works on my lab setup, in any case.
thank you jquinby,I try it successful,you are smart boy