Forum Discussion
Andres_Calderon
Nov 15, 2006Nimbostratus
need help with redirect https to http
Hello.
How can I redirect https to http using an iRule
- Deb_Allen_18Historic F5 Account
- Andres_CalderonNimbostratusThank You!
- Gerardo_Garcia_NimbostratusI have the same issue and I tried that one but the server stays in one infinite loop.
- Andres_CalderonNimbostratusGerardo.
- Gerardo_Garcia_NimbostratusMy problem is that I need to convert all the traffic to https
- Andres_CalderonNimbostratusOK.
- Gerardo_Garcia_NimbostratusThats the rule that causes the infinite loop
- Andres_CalderonNimbostratusJust 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