Forum Discussion

Daniel_Borrego_'s avatar
Daniel_Borrego_
Icon for Nimbostratus rankNimbostratus
Nov 13, 2018

Redirect iRule - Not working for IE but works for Chrome

I'm trying to get a redirect to work across all browsers but having a hard time.

 

All traffic needs to be redirected to 443 and also need URI written in case a user doesn't type it in. If they do type it in I'd like to just redirect to 443.

 

IE 11 puts a "/" at the end of the URL which doesn't allow the redirect to work but Chrome does not add the "/"

 

User types: http://analytics.site.com needs redirection to https://analytics.site.com/SecureSite/asp/Main.aspx

 

User types: http://analytics.site.com/SecureSite/asp/Main.aspx needs redirection to https://analytics.site.com/SecureSite/asp/Main.aspx

 

I've placed the iRule under both VIPs listening on 80 and 443.

 

when HTTP_REQUEST { if {[HTTP::uri] equals "/" } { HTTP::redirect "; event disable return } }

 

No RepliesBe the first to reply