Forum Discussion
Ryan_78003
Nimbostratus
Jul 28, 2010Redirecting to Mobile Sites occasional failure
The situation:
I need to redirect mobile devices to mobile versions of sites. The catch is not all sites have mobile versions. In the iRule I regex to determine if the client is a mobile device, then to determine if a site has a mobile version I issue a GET that returns the url of the mobile site. Then I either continue on to the site or redirect to the mobile version of the site.
It seems that 2-3% of the time the iRule just silently dies and fails to issue the GET to lookup the mobile site. The rest of the time things work as expected.
Has anyone seen this kind of iRule behavior? Any thoughts on how to solve the issue?
- Chris_Miller
Altostratus
Why not juse use a data group of all the sites that do have mobile versions? Then, if user agent is a phone and HTTP::uri eq datagroup, send the redirect? - Ryan_78003
Nimbostratus
Well there are quite a few sites, and new ones may be added daily. Manually updating the datagroup is not feasible. - Chris_Miller
Altostratus
So you're basically doing the following: - Ryan_78003
Nimbostratus
Basically yes. There is other logic that it does to see if the site is even has a possibility of a mobile site, that is checked against a data source as its small static data. - Chris_Miller
Altostratus
Posted By Ryan on 07/28/2010 10:59 AM - hoolio
Cirrostratus
Can you post the (sanitized) iRule? It might help us provide recommendations on the issue.
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