Forum Discussion
What_Lies_Bene1
Oct 31, 2012Cirrostratus
Try this;
when HTTP_REQUEST {
set wap https://wapsite.com/uri
set normal https://normal.com/uri
set smart https://smartphonesite.com/uri
if { [HTTP::host] equals "https://mysite..com" } {
if { [class match -- [string tolower [HTTP::header User-Agent]] contains user_agent_tokens_class] }{
log local0. "wap phone"
HTTP::redirect $wap
return }
elseif {[class match [string tolower [HTTP::header User-Agent]] contains mobile_device_providers] } {
log local0. "smart phone"
HTTP::redirect $smart
return }
else {
log local0. "Normal web site"
HTTP::redirect $normal
}
}
}