Forum Discussion
Koalan
Jun 18, 2020Cirrus
iRule for redirection
Hi, I am not really familiar with iRule, can somebody help me? So the scenario is that a user wants to access a f5 vip which will be redirected to a certain site: user access onboar...
Samir
Jun 18, 2020MVP
Policy is always a better choice. I agree with 's iRule. Small correction needed; There is no points to add multiple if condition. Find the below iRule, Hope it will work for you.
when HTTP_REQUEST {
if { ([HTTP::host] equals "onboarding.abc.com") && ([HTTP::uri] starts_with "/uk") } {
HTTP::respond 301 Location "https://ask.service.com/management.do"
}
}
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