Redirecting traffic to different pool based on URL context

Hi Friends, We have created one VIP and 2 pools on F5 Below the requirement If the URL address is https://www.abc.com/xyz/home.jsp Traffic will go to default pool: pool_1 If the URL address is https://www.abc.com/xyz/dashboard/home.jsp Traffic will go to another pool: pool_2 As i am in new in F5 so Please revert with exact irule

Hi mate,

Have a go at this (untested for syntax + i just arrived at work ) :slightly_smiling_face:

when HTTP_REQUEST {
set uri [string tolower [HTTP::uri]]

In case you wish to add more URIs later
switch -glob $uri {
"/xyz/dashboard/*" {
    pool pool_2
      }
 default { 
     pool pool_1
        }
    }
}