Forum Discussion
southern_shred1
Jun 08, 2018Nimbostratus
iRule Redirect loop
Hi
I am trying to achieve a simple URL redirect but I keep getting a redirect loop or nothing at all. I get an error of "too many redirects"
Condition 1
All requests to "; must be red...
JG
Jun 09, 2018Cumulonimbus
Not totally sure of your requirement, but I will still a venture a reply, if only serving as a pointer:
when HTTP_REQUEST {
if { [HTTP::host] equals "test.tst.train123.com" } {
switch -exact [string tolower [HTTP::path]] {
"/" {
HTTP::redirect "https://test.tst.train123.com/Trace123"
}
default {
pool pool_trace123
}
}
}
}
An LTM policy would actually be a better option, and its building process would guide you through it in a more transparent way and therefore be helpful to you.
[Edited]
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