iRule path redirect doesn't work with question mark
Hey everyone!
I know this should be simple, but I'm missing something here. We currently use an irule as follows to switch between pools on a single virtual server:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/en/*" -
"/r/*" -
"/kn/*" -
"/up/*"
{ aa
pool UP-WEB
}
default {
pool UP-PRO
}
}
}
This works great for sending the above paths to WEB, and everything else to PRO. However, I also need to send paths with: "?cont=*" to UP-WEB as well. So it looks something like this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/en/*" -
"/r/*" -
"/kn/*" -
"?cont=*" -
"/up/*"
{ aa
pool WEB
}
default {
pool PRO
}
}
}
I believe it's the question mark causing the problem. When I try to go to URL: www.mysite.com/?cont=813 it goes to the Pro pool instead of the Web pool. Any ideas are very much appreciated!