Forum Discussion
tony_100112
Nimbostratus
Jan 06, 2009how to use irule for this URL redirection
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
2 Replies
- James_Quinby_46Historic F5 AccountHello.
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. - tony_100112
Nimbostratus
thank you jquinby,I try it successful,you are smart boy
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
