Forum Discussion
Chris_D_15752
May 02, 2011Nimbostratus
Mobile 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...
hooleylist
May 26, 2011Cirrostratus
You could add a check for the application set cookie at the top of the iRule using something like this:
when HTTP_REQUEST {
Check if the full site cookie preference has already been set
if {[HTTP::cookie value "full_site_cookie"] eq "some_value"}{
Exit this event in this iRule to avoid a possible redirect to the mobile site
return
}
... rest of the iRule logic to check for mobile user-agents
and redirect them to the mobile site
}
The cookie could also be set by an iRule on the mobile site assuming you can detect when a user has selected a preference within the web app to go back to the full site.
Aaron
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