Forum Discussion
Damien_Turner_1
Nimbostratus
Aug 02, 2010Redirect if your a mobile user....
Hi all, I was wondering if I could have some help!
I have been asked if it is possible to use an iRule to redirect a mobile user to a new URL.
An example would be....
user on an iPhone goes to www.m...
Nicolas_Pla_681
Nimbostratus
Oct 29, 2012Hi, i have a list of almost all mobile devices in this irule. hope that you find it usefull
if {[HTTP::header User-Agent] matches_regex "(Android|iP(hone|od)|Symbian|BlackBerry|Opera M(ini|obi)|IEMobile|GoBrowser|Blazer|BOLT|Fennec|Iris|Maemo|MIB|Minimo|NetFront|SEMC-Browser|Skyfire|TeaShark|Teleca|uZard)"}{
HTTP::respond 301 Location "http://m.your.site.com"}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
