Forum Discussion
Alan_Johnson_FB
Nimbostratus
Jul 06, 2017If URL contains [blank] redirect to original URL @ different port
Hi folks,
I'm trying to setup what I believe is a fairly simple redirect iRule but a total lack of experience has me stumped. Here's what I'm trying to accomplish:
If a client hits a URL co...
P_K
Altostratus
Jul 06, 2017This should work!
when HTTP_REQUEST {
if {
[string tolower [HTTP::uri]] contains "/synchrony" && [TCP::local_port] == 80 }
{ HTTP::redirect "http://[getfield [HTTP::host] ":" 1]:8091[HTTP::uri]"
}
}
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