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 04, 2016Ah, I see. You want to remove /test for an Request Path that is /test or begins with /test/, correct? If so:
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/test" {
HTTP::path "/"
pool test
}
"/test/*" {
HTTP::path "[substr [HTTP::path] 5]"
pool test
}
}
}
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