Forum Discussion
cstalker_366429
Nimbostratus
Jul 09, 2018iRule to break looping
Hi
I have dynamic urls and currently my iRule is 'looping' on itself so I need to refine.
I have two basic url that need to be handled by one iRule.
uri 1: hostname/
uri 2: hostname/webprocess.s...
crodriguez
Jul 09, 2018Ret. Employee
Maybe something like this?
when HTTP_REQUEST {
if { ([HTTP::host] equals "hostname" && [HTTP::uri] equals "/") ||
([HTTP::host] equals "hostname" && [HTTP::uri] starts_with "/webprocess.srv") } {
HTTP::redirect "http://hostname2/login"
}
}
Unless hostname2 has some sort of redirect back to hostname, you should not encounter a loop.
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