Forum Discussion
hooleylist
Aug 31, 2009Cirrostratus
Hi John,
You can check the path (URI minus the query string) using HTTP::path (Click here) instead of HTTP::uri in your switch statement. This will allow you to ignore the query string.
Also, for switch statements, if multiple cases use the same action, you can group them using the hyphen:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/foo"-
"/foo/*" { pool content_pool }
default { pool pool_main_site }
}
}
Aaron