Forum Discussion
tamiranashvili_
Nimbostratus
May 02, 2018Redirect pool + path
Hello,
I need to create iRule where redirect to pool + /path.
jaikumar_f5
Noctilucent
May 02, 2018PFB,
Redirect one
when HTTP_REQUEST {
if { [HTTP::host] equals "simple.com" && [HTTP::uri] starts_with "/test" } {
pool my_pool
} else {
HTTP::redirect https://[HTTP::host]/test[HTTP::uri] }
}
Transparent, updating the URI and sending it to the backend member.
when HTTP_REQUEST {
if { [HTTP::host] equals "simple.com" && [HTTP::uri] equals "/" }
HTTP::uri [string map {"/" "/test/"} [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