cobyism / ghost-on-heroku

One-button Heroku deploy for the Ghost blogging platform.
MIT License
743 stars 686 forks source link

301 Redirect #163

Open arifzeeshan opened 5 years ago

arifzeeshan commented 5 years ago

I want to redirect all traffic from heroku domain to my custom domain. HEROKU_URL env var is not working.

SNathJr commented 5 years ago

I want to redirect all traffic from heroku domain to my custom domain. HEROKU_URL env var is not working.

What you want to do is: on heroku dashboard, in the settings section of your app, scroll down till you see a button called "Add domain". Click it and enter your custom domain there. Now, at your domain's DNS records settings, either an 'A' record or a 'CNAME' record pointing to heroku's https://APPNAME.herokuapp.com (Tried and tested with CNAME setting at cloudflare)