winnajeem_25540
Mar 23, 2016Nimbostratus
redirect loop
Hi All.
Request help to resolve redirect loop.
when HTTP_REQUEST { if { [string tolower [HTTP::host]] contains "abc.com"} { if { not ([HTTP::uri] contains "/abc/en") or not ([HTTP::uri] equals "/") } then { HTTP::redirect "http://[HTTP::host]" } } }
When the above irule is activated, abc.com/abc/en/* works fine, but when the http_host does not have any uri the irule is going into redirect loop.
abc.com -> abc.com -> abc.com -> .....
how can we resolve the redirect loop when uri is empty.