Thanks for your input. That did the trick. However, we now want to make a tweek to the rule. We want to exclude certain IPs from being affected by the rule. I'm thinking that the use of a Data Group would do the trick. I tried modifying the rule as follows:
when HTTP_REQUEST {
if { [HTTP::header "User-Agent"] contains "MSIE 6" and [IP::client_addr] not equals $::DataGroupName} {
log local0. "[IP::client_addr]:[TCP::client_port]: Using IE 6"
HTTP::redirect "http://www.example.com/newlocation.html"
}
}
It doesn't like my syntax. Am I on the right track to accomplish this? Is there a better way? Maybe using a Stream profile in the iRule to replace the user-agent info from the IP's in the datagroup before we block IE6?