Forum Discussion
2 Replies
Sort By
- natheCirrocumulus
How about this? Using Google as a test redirect
when HTTP_REQUEST { if { not ([string tolower [HTTP::header User-Agent]] contains "msie") } { HTTP::redirect "http://www.google.co.uk/" } }
- Brad_ParkerCirrus
I haven't been able to test this just yet, but should cover all IE UAs and mobile.
when HTTP_REQUEST { if {!([string tolower [HTTP::header "User-Agent"]] contains "msie") || !([string tolower [HTTP::header "User-Agent"]] contains "trident") || [string tolower [HTTP::header "User-Agent"]] contains "mobile"}{ HTTP::respond 302 Location "http://www.differentlocation.com" } }