Forum Discussion
NetworkTeam_178
Nimbostratus
Feb 02, 2016Redirect https://www.website.com to http://www.website.com
Hello,
I have 2 websites, one is an https version of the http website. The F5 is handling the SSL, I just need the F5 to redirect any request for the https version of the site to the http versio...
Kai_Wilke
MVP
Feb 02, 2016Hi Brenden,
you may try the snippets below...
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] eq "www.website.com" } then {
HTTP::redirect "http://[getfield [HTTP::host] ":" 1][HTTP::uri]"
}
}
Note: I didn't understand "This is so that I can work on the https website and end users won't be affected." Can you explain this requirement a little further?
Cheers, Kai
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