Forum Discussion
Zainal_Abidin_1
Nimbostratus
Dec 23, 2013Http Redriect Loop
Hi,
I want to do redirect from HTTP to HTTPS. I have set iRule.
when HTTP_REQUEST {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
On firefox, it loop but on chrome it's...
What_Lies_Bene1
Cirrostratus
Dec 23, 2013So you are using a single Virtual for HTTP and HTTPS? If that's the case you'll need identify the HTTP traffic and only redirect that. As things stand you are redirecting even the HTTPS.
when HTTP_REQUEST {
if { [TCP::local_port] == 80 } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects