Forum Discussion
Sunnypro_250536
Nimbostratus
Jun 21, 2018Redirect iRule for specific URI's for a Single VIP.
Hello,
I have a requirement where I need to have some redirects enabled to the VIP, the requirement is a combination, and I want to know whether this can be implemented in a single iRule.If so c...
Anesh
Cirrostratus
Jun 22, 2018try
when HTTP_REQUEST {
if { !([HTTP::host] starts_with "www.") && ([HTTP::uri] conatins "def") }{
HTTP::redirect "https://www.[HTTP::host]/def"
}elseif {[HTTP::uri] conatins "uvw"}{
HTTP::redirect https://www.[HTTP::host]/uvw/xyz.html
}
}
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