Forum Discussion
mfkk531_168091
Nimbostratus
Dec 05, 2015Mobile Redirect Working; Mobile OptOut Not working. Please Help!
Hi,
For mobile redirect, we recently made changes and now we do NOT use redirect to a different website m.xyz.com, but just have mobile site on different servers in a pool and have f5 redirect to ...
Stanislas_Piro2
Cumulonimbus
Dec 05, 2015Hi,
the first condition will supersede next ones.
but you need to change pool to default pool if you want to force the mobile to be sent to the default pool ...
when CLIENT_ACCEPTED {
Save the name of the virtual server's default pool before it's change in this iRule
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::header User-Agent]] contains "mobile_agents" ] } {
if {([HTTP::cookie MobileOptOut] eq 1) || ([URI::query [HTTP::uri] MobileOptOut] eq 1)} { pool $default_pool } else { pool p-mobile-redirect }
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
