Forum Discussion
Kai_Wilke
Mar 07, 2016MVP
Hi Johann,
attach the iRule below to your HTTP-only Virtual Server. It will perform the HTTP-to-HTTPS redirect for you, while preserving the requested URI...
when HTTP_REQUEST {
HTTP::respond 307 "Location" "https://[getfield [HTTP::host] ":" 1][HTTP::uri]"
}
Note: Detach any previously configured HTTP-to-HTTPS redirect iRules on this Virtual Server.
Cheers, Kai