I'm posting this because none of the other questions related to Namecheap/Heroku have helped me.
It doesn't seem to be possible to have a configuration where both of these are true:
- https://example.com, https://www.example.com, http://example.com, http://www.example.com all end up loading the site
- Emails get routed correctly to [email protected]
The reason this doesn't seem to be possible is that in order for MX email records to work on Namecheap, there must not be a CNAME record for the naked domain. But for https://example.com to work, Heroku requires that I set up a CNAME for the naked domain (host @ with value example.com.herokudns.com)
I tried using a URL Redirect record for the naked domain that goes to https://www.example.com but this does not cover the https://example.com case. But that's the closest I've come to having all cases working.
I ultimately don't care if a redirect happens to the www. version. I just need content to load for both naked and non-naked domains and for both https and non-https cases.
So aside from switching off of Namecheap, how can I get all the domains loading correctly and have email working as well?