https to https redirection

Hello

I need your help in redirecting https to https. I have VIP created for port 80 and 443. url will re https://example.com and http://example.com. My client wants http and https redirected to https://example.com/abcd. How can i achieve it.

There is an iRule already created to do that called “_sys_https_redirect”

when HTTP_REQUEST {
    HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}

Apply that iRule in your HTTP VS.

KR, Dario.