Forum Discussion
techguru_90881
Nimbostratus
Sep 04, 2013IRULE for rewriting http request with https request
Currently we have configured https ://www.ABC.com on the LTM V11 , we are getting the homepage but if we select some of the TAB on the pages it redirect http pages . As per our requirement we need...
Syafiq_89483
Cirrus
Sep 04, 2013Just to make your code more readable :
when HTTP_REQUEST {
STREAM::disable HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@http://@https://@} STREAM::enable }
}Btw, have you tried this solutions?
SOL7125: Configuring a virtual server to automatically redirect HTTP requests to HTTPS
http://support.f5.com/kb/en-us/solutions/public/7000/100/sol7125.html
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