Forum Discussion
Scott_85950
Nov 14, 2010Nimbostratus
HTTPS to HTTP Redirect for Google Non Secure Search Libraries
Hi, I am looking to redirect a single page on my site from https to http, if ever called securely (https). I did find this article on https to http redirection but it it more indepth than I think I need to go;
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/afv/topic/aft/1174647/aff/5/showtab/groupforums/Default.aspx1198869
Much like the Google search on this Dev Central site, when a customer uses the functionality in https, IE returns a non secure pop up warning message due to the insecure Google libraries referenced.
This iRule is what I have attempted, however I am not seeing the results I'd expect. Please help. expected outcome; https://www.mydomain.com/search-results.sthml when called responds with results as; http://www.mydomain.com/search-results.shtml. Do I need to specify if the cypher is secure, then redirect? Please help.
when HTTP_REQUEST {
if { [HTTP::uri] contains "search-results.shtml"} {
HTTP::respond "http://[HTTP::host][HTTP::uri]"
}
}
}
- nitassEmployeescott,
- Scott_85950NimbostratusThanks nitass,
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