I have a website with an SSL cert. Let's say it's called example.com , I have a rewrite rule set to redirect any request to href="http://example.com" rel="nofollow noreferrer">http://example.com to go to noreferrer">https://example.com/ this works great. But, every now and then I get someone who types noreferrer">https://www.example.com/ and they get an SSL certificate mismatch. As the cert is only for example.com. What's the best way to do the re-direct first, before the server throws the ssl certificate to the web browser?