Forum Discussion
Tim_E_299773
Nimbostratus
Oct 12, 2017Wildcard iRule or Policy redirect v13.0
Im trying to utilize a simple redirect policy or iRule so if someone enters mycompany.org/whatever, where "whatever" is a wildcard entry, it will redirect to https://mycompany.org/Target. I am not a ...
Stanislas_Piro2
Cumulonimbus
Oct 12, 2017Hi,
The problem is what do you mean by whatever? Do you mean every uri but /target ?
when HTTP_REQUEST {
if {!([HTTP::path] starts_with "/Target")}{
log local0. "redirecting client [IP::client_addr]"
HTTP::redirect "/Target"
}
}
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