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...
Damien_Turner_1
Nimbostratus
Aug 03, 2010Hi Chris thank you for replying.
Your right the VIP point to the same servers but will display a different site as the incoming domain will be different.
If I want to use a datagroup would it look like this....
when HTTP_REQUEST {
if { [HTTP::header "User-Agent" ] equals $::MobileUserAgents } {
HTTP::redirect "http://mobile.holidayextras.co.uk" }
Uncomment the line below to turn on logging.
log local0. " Mobile Redirected"
}
The datagroup then has string *iPhone* *iPad* etc
My iRule editor said it has passed the checker which is always a good sign!
Regards
DamienRecent 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
