Ravi_Rajan_7549
Feb 16, 2007Nimbostratus
Redirect Rule with MatchClass
Hi,
I am new to irules and need some help. I have a current rule like this -
when HTTP_REQUEST {
if { [matchclass [ string tolower [HTTP::uri] ] contains $::xyz]}
{HTTP::redirect "http://172.25.10.10/offline/appsoffline.html"}
}
Above will match the incoming uri with the datagroup and will take appropriate action.
I want the reverse of it, like If the URI matches the datagroup pass the request as it is and if some other URI comes in, then do a http::redirect.
TIA,
Ravi