Forum Discussion
Chris_Grant
May 20, 2016Employee
Try using the _sys_https_redirect irule that is built into the BigIP. It is written specifically to do http to https redirection. In 11.6.0 it looks like this:
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
Also, your test conditions in your switch statement are identical and you have no default. This is probably not what you want.