Forum Discussion
crodriguez
Jan 31, 2017Ret. Employee
Try this notation:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/WebTrans/webs.aspx*" } {
HTTP::redirect "https://othersite.bigfcu.org/"
} elseif { [string tolower [HTTP::uri]] starts_with "/mgram/mgram.asmx" } {
if { not ( [IP::addr [IP::client_addr] equals "10.10.10.10"] or [IP::addr [IP::client_addr] equals "20.20.20.20"] or [IP::addr [IP::client_addr] equals "30.30.30.30"] ) } {
HTTP::redirect "https://[HTTP::host]/"
}
}
}