Forum Discussion
Feb 16, 2007
You can either use the "!" (not) operator or an else clause.
when HTTP_REQUEST {
if { ![matchclass [ string tolower [HTTP::uri] ] contains $::xyz] } {
HTTP::redirect "http://172.25.10.10/offline/appsoffline.html"
}
}
-or-
when HTTP_REQUEST {
if { [matchclass [ string tolower [HTTP::uri] ] contains $::xyz]} {
} else {
HTTP::redirect "http://172.25.10.10/offline/appsoffline.html"
}
}
Either should work...
-Joe