Forum Discussion
chungyu_16122
Altostratus
Jan 02, 2013Redirects to a mobile site not being completed by iRule
Hi I wrote this irule, the redirect stops at http://desautels.mobilize.com and does not actually redirect to the full path desired, does anyone have a suggestion? I am using Chrome but with a user-a...
What_Lies_Bene1
Cirrostratus
Jan 02, 2013Personally I'd use a Data Group and do it like this;
Create a Data Group (called user-agent-dg below) with just strings
containing the user agent strings you wish to match
when HTTP_REQUEST {
if { (([string tolower [HTTP::host]] equals "www.mcgill.ca") && ([string tolower [HTTP::uri]] equals "/desautels/programs/isp")) } {
if { [class match [string tolower [HTTP::header User-Agent]] equals
user-agent-dg ] } {
HTTP::redirect "http://m.example.com" }
Stop processing the iRule for this event here
return
}
}
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