I have a domain that I run with SSL. I purchased a certificate for thedomain.com. Note that it does not apply to www.thedomain.com at all and I think that might be where my issue lies. My goal is that my visitors arrive at https://thedomain.com, without a www. There are four cases to cover:
1. http://www.thedomain.com - Redirected in namecheap to https://thedomain.com 2. http://thedomain.com - Redirected by server code 3. https://thedomain.com - No redirect necessary 4. https://www.thedomain.com - The problem case, read below
In that case last my www redirect does not seem to be working at all. I'm not sure why that is. Do I need to buy a second cert for www? Is there a way to setup my DNS to get it to simply redirect? I don't care to have my users come in on www at all, but I do need to redirect those people that manually type in the www address.
My host record is setup as follows:
Host Redirect to Record type @ 126.96.36.199 A (Address) www https://thedomain.com URL Redirect (301)