So I have a site configured with example.com:80 and www.example.com:80, as well as a certificate for port 443.
When a user goes to the www.example.com:80 or 443, which has the SSL certificate configured correctly (the certificate is specifically for www.example.com, not example.com), everything is fine.
Additionally, if a user browses to domain.com:80, my application is able to redirect to www.example.com:443.
However, if the user types in "https://example.com", they force the load of the site, and the domain doesn't match the certificate. I'm not sure why URL Rewrite doesn't redirect in this case, since I put in "https://example.com" and it shows the correct test result.
Is there some other trick or method to get the redirect to work, or is it "impossible" because you cannot redirect across domains with the HTTPS protocol?