Redirects 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-agent switcher for testing.
Regards
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "www.mcgill.ca/desautels/programs/isp" } {
switch -glob [string tolower [HTTP::header User-Agent]] {
"*blackberry*" -
"Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5 *"-
"*Android*" -
"*Windows Phone OS 7*" -
"*Windows Phone OS 8*"-
}
{
HTTP::redirect "http://desautels.mobilizeme.com/undergraduate_programs/isp"
}
}
}