Ken_Cottrell
May 17, 2011Nimbostratus
Multiple redirect/respond directives not allowed in logs
The rule is supposed to only fire on root "/" requests. It is supposed to not fire on user agent string matches defined in a search engine class list, but it should fire on user agent string matches defined in a mobile calls list.
If it is not a root request, it should fall through to the default pool for the VS.
As a side note, mobile.site.com is a CNAME for www.site.com
Does anyone see the problem with this rule?
when HTTP_REQUEST {
if { ([HTTP::uri] equals "/") } {
if {not([class match [string tolower [HTTP::header User-Agent]] contains user_agent_search_engine_list])} {
if {([class match [string tolower [HTTP::header User-Agent]] contains user_agent_mobile_list]) } {
HTTP::redirect http://mobile.site.com/mobile/index.jsp
}
}
}
else {
pool www.site.com_80 }
}