ghost-on-heroku
ghost-on-heroku copied to clipboard
301 Redirect
trafficstars
I want to redirect all traffic from heroku domain to my custom domain. HEROKU_URL env var is not working.
I want to redirect all traffic from heroku domain to my custom domain.
HEROKU_URLenv 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)