Forum Discussion
Kai_Wilke
Nov 24, 2016MVP
Hi Annsar,
If you want to forward URIs with 5 or more path segments to a different pool, then take a look to the iRule below...
when HTTP_REQUEST {
if { ( [string tolower [HTTP::path]] starts_with "/test/" ) and ( [llength [split [HTTP::path] "/"]] > 5 ) } then {
pool TESTPOOL
} else {
pool DEFAULTPOOL
}
}
Note: I hope that I got the point of your question? If not then please clarify the question a little bit more detailed with some samples URIs...
Cheers, Kai