Forum Discussion
Kay_113442
Nimbostratus
Jul 01, 2010iRules which will redirect HTTPS to HTTP?
Hi,
Can someone share the iRules which will redirect to ?
Thanks in advance!
2 Replies
- Michael_Yates
Nimbostratus
Try this:when HTTP_REQUEST { if { [TCP::local_port] == 443 } { HTTP::redirect "http://[getfield [HTTP::host] ":" 1 ][HTTP::uri]" } } - MW1
Cirrus
Could be wrong (no irule expert)
looking at the irue redirect generator for http>https:
when HTTP_REQUEST {
HTTP::redirect https://[getfield[HTTP:host]":"1][HTTP:uri]
}
I would just change the section HTTP::redirect https:// on the 2nd line to HTTP:redirect http:// and enable this on virtual server listening on the https port
not tested but that makes the most sense to me
regards
W60
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