Forum Discussion
cymru81
Altocumulus
Sep 03, 2019irule help based on uri
Hi, ive done some searching on here but cannot find the exact help i need. We have the following scenario, can someone assist with an irule that will achieve this please? we have one VIP that ...
iaine
Nacreous
Sep 04, 2019Hi
To keep the rest of the path in place, use something like this. This will replace /live with /live_site and then remove the first 5 characters from the uri (so /live) and then insert the rest of the path
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/live"}{
HTTP::uri /live_site[string range [HTTP::uri] 5 end]
pool pool_live
} elseif {[HTTP::uri] starts_with "/test"}{
HTTP::uri /test_site[string range [HTTP::uri] 5 end]
pool pool_test
}
}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
