Forum Discussion
Scott_85950
Sep 23, 2011Nimbostratus
iRule - HTTPS redirect to HTTP
Is it possible to redirect a URL currently rendering in HTTPS, back to HTTP?
I know that some browser types will notify users that they are about to leave
an HTTPS page, however the benefits outweig...
Morning Aaron,
Apologies, I have revised the sample iRule for more clarity as to what I am trying to achieve. I am not actually looking to redirect to another domain, rather, redirect from the 443 profile to the 80 profile when a virtual directory is identified in the GET request. How would I redirect from HTTPS to HTTP using the following iRule?
when HTTP_REQUEST {
if {[HTTP::uri] contains "/pdf"} {
HTTP::redirect "http://[HTTP::host]/pdf/[URI::basename [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