Forum Discussion
Alex_f5
Altostratus
Oct 05, 2017Irule to redirect to specific pool based on URI + delete the URI working intermittently
Hi, abcd_irule is an irule that is working but sometimes fails,
This is the irule content:
when HTTP_REQUEST {
if { [HTTP::uri] contains "/client/v1*" } {
pool abcd_client_pool
if { [string tolo...
P_K
Altostratus
Oct 05, 2017you can try something simple, like below. However, i'm not sure if i understood "/partner" & "/client". Correct me if I misunderstood.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/client/v1/" } {
pool abcd_client_pool
} elseif { [HTTP::uri] starts_with "/partner/v1/" } {
pool abcd_partner_pool
}
else {
HTTP::respond 301 noserver Location "https://[HTTP::host]"
}
}
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