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.
At the end, it was redirecting me to my herokuapp 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 Cloudfare because it provides you a free ssl certificate for your domain and also he found a well-explained blogpost from thoughtbot
So I won't explain a lot about it, just the key points to remember(set up cloudfare free ssl on heroku):
- Add your domain to cloudfare
- Add cloudfare dns to Namecheap
- Add your domain to custom domain in Heroku app settings.
Hope this works for you, if not let me know I'm willing to help.