Forum Discussion
Richard__Harlan
Aug 03, 2012Historic F5 Account
Use HTTP::uri it does what you are looking for
https://devcentral.f5.com/wiki/iRules.HTTP__uri.ashx
then setup a switch statement
switch [HTTP::uri] {
"/abc/user" {
use pool * }
"/abc/" {
use pool * }
default {
HTTP::redirect "http://server1.corp.com/abc/user"
}
}
That should work for you