Forum Discussion
Julian_Grunnell
Nimbostratus
Sep 11, 2008HTTPS to HTTP redirect
Hi - can anyone help with an iRule for the above please? I see and use iRules in the opposite direction!!
I'd like all HTTPS requests to be redirected to a HTTP virtual server WITH THE EXCEPTION of requests for https://site-name/contact/
Any ideas?
Thanks - J.
- Julian_Grunnell
Nimbostratus
Ah some progress but another problem as well. - Julian_Grunnell
Nimbostratus
Sorted. - Julian_Grunnell
Nimbostratus
Spoke to soon - no it isn't. Bet you can do this with the HTTP Class and a regex to redirect everything except the contact/ page. - hoolio
Cirrostratus
How about a string comparison in an iRule?when HTTP_REQUEST { if {[HTTP::uri] starts_with "/contact")}{ Redirect to http HTTP::redirect "http://[HTTP::host][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