Forum Discussion
RH
Nimbostratus
Jan 05, 2018Simple iRule HTTPS redirect in F5 LTM v12.1.2 (Build 1.0.271)
Trying to use a HTTPS redirect on a VS but I'm stuck.
We would like to redirect https://mysite.com towards https://www.mysite.com
What I have tried so far;
when HTTP_REQUEST {
if { "https://[...
Lee_Sutcliffe
Nacreous
Jan 05, 2018you don't need to specify the protocol for [HTTP::host], try this:
when HTTP_REQUEST {
if {[HTTP::host] equals "mysite.com"} {
HTTP::redirect "https://www.mysite.com"
}
}
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