Forum Discussion
Almassud_221797
Cirrus
Aug 29, 2016Redirect iRule
Hello all,
I have a simple iRule that redirects to another URL:
when HTTP_REQUEST {
HTTP::redirect "http://host.DomainName.com/uri1[HTTP::uri]"
}
problem that I am facing is that there ...
janholtz
Altostratus
Aug 29, 2016Blecchh, I hate using negatives in an irule, try this:
when HTTP_REQUEST {
if { ! [ string tolower [HTTP::uri]] starts_with "/uri1" } {
HTTP::redirect "/uri1[HTTP::uri]"
}
}
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
