Forum Discussion
PacketHead_4009
Oct 18, 2011Nimbostratus
Redirect iRule to Dynamic URL?
Hello All, Have a quick question. I want to setup a standard "contains" iRule redirect but it needs to be able to work with dynamic URLs. What I mean by dynamic is that there is a small pa...
Michael_Yates
Oct 18, 2011Nimbostratus
Hi PacketHead,
Sure you can do something like that. You can match on however much of the HTTP::uri you need to to insure it is a qualified match and then perform a redirect.
Something like this:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "/vbapp/customer=" } {
HTTP::redirect "http://hosted99.com[HTTP::uri]"
}
}
This is not the only method that you have at your disposal. There are many ways to perform the same type of thing if you want an alternate solution.
Hope this helps.
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