jaddie_85451
Oct 22, 2014Nimbostratus
User Agent Browser Rediret not working
Sorry for another browser user agent post..
I have this written this iRule and it is appears not to be working, it blocks the first line only and when I switch the order firefox with msie 8.0 it blocks all of ie.
Any suggestions why this would not be working or a better way to do this....
Thanks -Steve
when HTTP_REQUEST {
Check if the client is an firefox browser
if {[string tolower [HTTP::header value User-Agent]] contains "msie 8.0"}{
HTTP::respond 302 Location "https://company.sharepoint.com/Help/Pages/Supported-Browsers.aspx"
} elseif { [string tolower [HTTP::header value User-Agent]] contains "firefox"} {
HTTP::respond 302 Location "https://company.sharepoint.com/Help/Pages/Supported-Browsers.aspx"
} elseif { [string tolower [HTTP::header value User-Agent]] contains "msie 9.0"} {
HTTP::respond 302 Location "https://company.sharepoint.com/Help/Pages/Supported-Browsers.aspx"
} elseif { ( [HTTP::cookie exists SITEA] ) } {
HTTP::respond 302 Location https://company.sharepoint.com[HTTP::uri]
} else {
HTTP::respond 302 Location "https://spo.xyzapps.com/Help/Communication/LoginExperience/Internal/Internal_1.html" "Set-Cookie" "SITEA=1;path=/"
}
}