Marco_Bayarena_
Aug 22, 2012Altostratus
HTTPS Redirect to another HTTPS domain using same VS.
I have a VS configured with a Client SSL profile for domain www.newsite.com. We are trying to migrate off an old domain name called www.oldsite.com that was using the same VS. Originally the Client Profile was set to www.oldsite.com certificate. We changed the profile to use the SSL certificate for www.newsite.com.
I would like for when someone browses to https://www.oldsite.com to redirect to https://www.newsite.com.
When I create the iRule,
when HTTP_REQUEST {
if { [HTTP::host] equals "www.oldsite.com" }
HTTP::redirect "https://www.newsite.com"
}
}
It doesn't seem to trigger because the browser is looking for the certificate for www.oldsite.com. It works when it is an HTTP request to www.oldsite.com. It fails when it is HTTPS.
Is there a way to make this rule or some other method to trigger immediately before the browser checks the common name of the cert?