Forum Discussion
Jul 16, 2017
I would split it into two rules.
Apply this to the HTTP VIP:
when HTTP_REQUEST {
HTTP::respond 302 Location "https://test.com[HTTP::uri]"
}
Apply this to the HTTPS VIP:
when HTTP_REQUEST {
if { [HTTP::host] eq "www.test.com" } {
HTTP::respond 302 Location "https://test.com[HTTP::uri]"
}
}
That should take care of all the scenarios you mentioned.
/Patrik