Reputation: 867
After I read many articles and Stackoverflows, I set at
---- Godaddy ----
CNAME host => www
points to => example.herokuapp.com
Forwarding => http://www.example.com
---- Heroku ----
Domain names
example.com
www.example.com
THEN when I curl
curl -v -H "Host: www.example.com" www.example.com.herokudns.com
it returns the HTML I want properly.
However, when I go to www.example.com
or example.com
on the browser,
Heroku says
"There's nothing here, yet."
Why?
Upvotes: 1
Views: 301
Reputation: 867
I think I figured it out. There are 3 things I want to note.
I suggest using Cloudflare, which I learned from this post (Make sure to access your website using https
after implementing Cloudflare) because this method seems to be a robust solution.
Thank you for all the help and comments :).
Upvotes: 1