Forum Discussion
Hello,
What we done is redirect and not forwarding.
First of for https redirecting you have to create a specific VS with an http profile and irule provide by F5 that allow redirect from http to https. exemple:
VS-mysite-80 --> IP1 (with an irule for https redirect provide by F5 --> _sys_https_redirect + http profile)
VS-mysite-443 --> IP1 (same IP that VS-mysite-80) + Irule that I provide you below
VS-bettersite-80 --> IP2 (with an irule for https redirect provide by F5 --> _sys_https_redirect + http profile)
VS-bettersite-443 --> IP2 (same IP that VS-bettersite-80) + Irule that I provide you below
second time you have to create a specific IRULE for URI and Hostname redirect without taking into account https redirection.
when HTTP_REQUEST {
if { ([HTTP::uri] eq "/") && (([HTTP::host] eq "mysite.com") && ([HTTP::host] eq "www.mysite.com")) } {
HTTP::redirect https://www.bettersite.com/mysite/
}
}
Regards