Forum Discussion
Andres_Calderon
Nimbostratus
Nov 15, 2006need help with redirect https to http
Hello.
How can I redirect https to http using an iRule
- Deb_Allen_18Historic F5 Account
- Andres_Calderon
Nimbostratus
Thank You! - Gerardo_Garcia_
Nimbostratus
I have the same issue and I tried that one but the server stays in one infinite loop. - Andres_Calderon
Nimbostratus
Gerardo. - Gerardo_Garcia_
Nimbostratus
My problem is that I need to convert all the traffic to https - Andres_Calderon
Nimbostratus
OK. - Gerardo_Garcia_
Nimbostratus
Thats the rule that causes the infinite loop - Andres_Calderon
Nimbostratus
Just to confirm. - Deb_Allen_18Historic F5 AccountI recently updated the description of this iRule in the codeshare to address this point of confusion -- if the virtual to which it is applied is processing HTTPS traffic on port 443, it will result in an infinite redirect loop:
(Adding this enhancement to the same codeshare page linked above.)when HTTP_REQUEST { if { [TCP::local_port] == 80 }{ HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri] } }
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