Hi,
I encountering a a peculiar issue here using this irule.
I am using the rule as below -
when HTTP_REQUEST {
if {[matchclass [ string tolower [HTTP::uri] ] contains $::applist]} {
HTTP::redirect https://172.25.100.220[HTTP::uri] }
}
}
Now the issue is -
Applist contains a string of all virtual directories (IIS6) for ex. abc, pqr, test.
now i type the URL http://VIP1/xyz/per/ajskc/test.aspx
By the irule, the above should not match and should not redirect to HTTPS, but it is redirecting to HTTPS.
When i put a log statement in irule for [HTTP::uri], i got this value /xyz/per/ajskc/test.aspx
Can we modify the irule in someway so that i can strip the entire URI and consider only the first part for compare.
Require help urgently.
TIA,
Ravi