Hi T Rajneesh,
Can you try this iRule?
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] equals "sitea.com") or ([string tolower [HTTP::host]] equals "www.sitea.com") } {
switch -glob [string tolower [HTTP::uri]] {
"/search/*" {
log local0. "[HTTP::host] [HTTP::uri] iRule redirect SiteA_3737"
SSL::disable serverside
pool SiteA_3737
}
"*sales*" -
"*financebuycategory*" {
log local0. "[HTTP::host] [HTTP::uri] iRule redirect Finance_443"
pool Finance_443
}
}
}
log local0. "[HTTP::host] [HTTP::uri] iRule no redirect"
# if you use default pool, no need 'pool SiteA_443'
# pool SiteA_443
}
If it doesn't work, can you check the logs?