Forum Discussion
SanjayP
Aug 27, 2021Nacreous
since ?cont= is part of HTTP query instead of uri, iRule would need to look for HTTP::query. You can try below or modify if you need to use switch statment for query as well.
when HTTP_REQUEST {
if { [HTTP::query] starts_with "cont=" }{
pool WEB
return
}
switch -glob [string tolower [HTTP::path]] {
"/en/*" -
"/r/*" -
"/kn/*" -
"/up/*"
{
pool WEB
} default {
pool PRO
}
}
}