Forum Discussion
Jinshu
Dec 11, 2015Cirrus
Thanks Stanislas,
I have done this with below Irule on 11.5.3 version.
On HTTPS url,
when HTTP_RESPONSE {
HTTP::header insert "Strict-Transport-Security" "max-age=15552000; includeSubDomains"
}
On http url
when HTTP_REQUEST {
set my_loc "https://[HTTP::host][HTTP::uri]"
TCP::respond "HTTP/1.1 301 Moved Permanently\r\nLocation: $my_loc\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"
TCP::close
}
-Jinshu