Forum Discussion
Michael_Yates
Jun 14, 2011Nimbostratus
You can apply this to your HTTP Virtual Server.
It will verify if the incoming HTTP::host starts with www and redirect to HTTPS based on the initial compare:
when HTTP_REQUEST {
if {[HTTP::host] starts_with "www."} {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
} else {
HTTP::redirect "https://www.[HTTP::host][HTTP::uri]"
}
}