Hi Aaron,
Thanks for the reply.
I have modified ur irule as below.
when HTTP_REQUEST {
if {[string tolower [HTTP::host][HTTP::uri]] starts_with "www.bana.com/stp/"}{
log local0. "[IP::client_addr]:[TCP::client_port]: Redirecting request to http://gamil.com[string range 4 end [HTTP::uri]]"
HTTP::redirect "http://gamil.com[string range 4 end [HTTP::uri]"
pool STP_Pool
}
}
I am getting the parse error as shown below
[iRuler_Parse_Test_Rule] error: line 4: [parse error: missing close-bracket] [[string range 4 end[HTTP::uri]" pool STP_Pool ]
Rule [iRuler_Parse_Test_Rule] error: line 4: [parse error: missing "] ["http://gamil.com [string range 4 end[HTTP::uri]"] pool STP_Pool ]
Please check this and advise.
Waiting for your reply.
Thanks in advance.
Regards,
Pandiarajan