Forum Discussion
hooleylist
Mar 18, 2009Cirrostratus
I think the problem is with the logical not. If you wrap what you want to negate in parentheses does it work?
when HTTP_REQUEST {
if { [HTTP::path] equals "/" }{
if { not ([string tolower [HTTP::query]] starts_with "user=soviet") }{
if { [HTTP::header "User-Agent"] contains "soviet" }{
HTTP::redirect "http://soviet.com/"
}
}
}
}
Aaron