when HTTP_REQUEST {
set uri [string tolower [HTTP::uri] ]
set mobile_site "https://www.mobilesite.com"
set full_site "http://www.mobilesite.com?Ismain=true"
if {$uri contains "ismain=true" || $uri contains "xyzuri" || $uri contains "dynamicweb"} {
event disable
} else {
switch -glob [string tolower [HTTP::header User-Agent]] {
"iphone" -
"android" -
"windows phone" -
"*windows ce*" -
"*bada*" -
"bb10" -
"blackberry" -
"symbinos" -
"symbain os" -
"symbian" -
"java" -
"winowsphone" -
"*windowsce*" {
HTTP::redirect "https://www.mobilesite.com"
return
}
}
}
}