Forum Discussion
Kevin_Stewart
Feb 06, 2014Employee
If it's as simple as http:// URLs bleeding through to the client from HTTP redirects, you can do something like this:
when HTTP_REQUEST {
if { [HTTP::header exists Location] } {
HTTP::header replace Location [string map -nocase {"http://" "https://"} [HTTP::header Location]]
}
}
That will replace any http:// in a redirect with https://.