Forum Discussion
Vaughn_96017
Nimbostratus
Jun 27, 2007Redirect based on user browser (mobile)
I am writing an iRule that states if the user is coming in via a mobile device to get redirected to a different pool. My question, here is what I have, is this correct?
when HTTP_REQUEST {
...
Vaughn_96017
Nimbostratus
Jun 27, 2007ok, my bad it should look like this;
when HTTP_REQUEST {
if {[HTTP::header User-Agent] contains "Mozilla"}{
pool default-pool
} else {
pool mobile-pool
}
}
I just need to fix it to accept all non mobile browsers....
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
