Aditya_Mehra
Dec 04, 2018Cirrus
iRule to Remove a part of uri and forward to a pool
Hi,
i am working on an iRule to Remove a part of uri and forward to a pool.
Eg:
xxx/yyy/abc/def should go to a pool 1 as
i want to remove xxx/yyy
Will the below work?
when HTTP_REQUEST {
set var1 "xxx/yyy"
if {([HTTP::uri] contains $var1) } {
set newUri [string map -nocase [list $var1 ""] [HTTP::uri]]
set HTTP::uri ${newUri}
pool Pool_1
}