Forum Discussion
rdessert_76127
Jul 19, 2012Nimbostratus
Help with adding mobile redirect to existing irule
Hi all,
I have been asked to redirect a handful of mobile device types (user agents) to our mobile homepage and am having some trouble getting the irule configured properly.
My cur...
rdessert_76127
Jul 25, 2012Nimbostratus
When I tested this with a browser it wasn't working although it was working by running the curl command from the box itself. I ended up having to change this line as follow...
if {[class match -- [string tolower [HTTP::header value "User-Agent"]] equals mobile_class]} {
to
if {[class match -- [string tolower [HTTP::header value "User-Agent"]] contains mobile_class]} {
Had me scratching my head for a bit, but it finally clicked :-)
Rich
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