Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

301 Redirect #163

Open
arifzeeshan opened this issue Dec 22, 2018 · 1 comment
Open

301 Redirect #163

arifzeeshan opened this issue Dec 22, 2018 · 1 comment

Comments

@arifzeeshan
Copy link

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

@SNathJr
Copy link

SNathJr commented Jan 6, 2019

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants