I got really hard days trying to point my NameCheap domain to my Heroku app.
First of all, I follow up the Namecheap documentation. Which is good, but it does not let me configure my domain as I wanted.
So the problem following these instructions. I was trying to use
www.mydomain.com and naked domain
mydomain.com to keep into the URL's browser input.
In the end, it was redirecting me to my Heroku app correctly but I could not see my NameCheap domain. what I saw there was
Then talking with some friends about my issue, one told me about Heroku SSL maybe that was causing my problem. And the other told me he faced a similar problem in the past and he solved with Cloudflare because it provides you a free SSL certificate for your domain and also he found a well-explained blog post from thoughtbot
So I won't explain a lot about it, just the key points to remember(set up Cloudflare free SSL on Heroku):
- Add your domain to Cloudflare
- Add Cloudflare DNS to Namecheap
- Add your domain to the custom domain in Heroku app settings.
Hope this works for you, if not let me know I'm willing to help.