ghost-on-heroku icon indicating copy to clipboard operation
ghost-on-heroku copied to clipboard

301 Redirect

Open arifzeeshan opened this issue 6 years ago • 1 comments
trafficstars

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

arifzeeshan avatar Dec 22 '18 17:12 arifzeeshan

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)

SNathJr avatar Jan 06 '19 22:01 SNathJr