Thamer_3789
Sep 23, 2012Nimbostratus
mobile device redirection
Hi All;
i want to apply this iRule to redirect the mobile devices traffic to another web site by detecting the "user agent" header...may you check it guys !!!!
when HTTP_REQUEST {
if { [string tolower [HTTP::host][HTTP::uri]] contains "www.mysite.com" } {
if { [class match [string tolower [HTTP::header User-Agent]] equals mobile_device_types ] }{
HTTP::redirect "http://m.mysite.com"}
}
}
* Where " mobile_device_types " is a data group ...
Thanks in advanced