Sri1
Mar 21, 2023Nimbostratus
iRule not working on few machines
I have a problem with iRule based url redirection, just a simple to redirect host to a path like below
when HTTP_REQUEST {
if { [HTTP::host] equals "example.com"}
{
HTTP::redirect "https://example.com/login"
}
}
I tried this as well
when HTTP_REQUEST {
if { [HTTP::uri] equals "/"}
{
HTTP::redirect "https://[HTTP::host]/login"
}
}
Both works in redirecting the site but on few machines, few other vlan users are getting too many redirects or just the page spinning.Not sure why this works on few machines while not on others. Packet capture is not so helpful as backend on HTTPS. Please suggest.