Forum Discussion
JWhitesPro_1928
Cirrostratus
Oct 03, 2016Best way to rewrite and choose different pool at same time
What would be the best method to achieve the following:
If incoming url starts with "/test" replace /test with just "/" and choose pool "test"
I've done some of my other pool selection wit...
VernonWells
Employee
Oct 03, 2016when HTTP_REQUEST {
if { [HTTP::path] equals "/test" } {
HTTP::path "/"
pool test
}
}
This will match exactly (and only) /test and nothing else.
Josh_Jacobson_4
Altostratus
Oct 04, 2016oops, looking at Vernon's answer below I should have put in a test for no second slash - sorry if my answer does more harm than good!
-Josh
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