Forum Discussion
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 } }
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com