Forum Discussion
What_Lies_Bene1
Jan 02, 2013Cirrostratus
Personally 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
}
}