Forum Discussion
Chris_D_15752
Nimbostratus
May 02, 2011Mobile redirect with forced SSL
Hi guys,
I am faced with dual puzzle for site demending dual function redirect causing some issses.
I need to provide detection process from www.main.com site provide mobile type v...
Rafael_Lombardi
Nimbostratus
Aug 17, 2011Hi Aaron,
So the iRule should look like:
when HTTP_REQUEST {
if {[HTTP::path] eq "/"}{
if {([HTTP::header "User-Agent"] contains "Ipod") or
([HTTP::header "User-Agent"] contains "Iphone")
} {
HTTP::redirect "http://m.mysite.com"
pool mobile_pool
}
else {
pool main_pool
}
}
else {
return
}
}
Thank you
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
