Home:ALL Converter>Heroku custom domain with Godaddy

Heroku custom domain with Godaddy

Ask Time:2018-12-18T03:13:23         Author:Drew Ogryzek

Json Formatter

I have a heroku app set up on a .app TLD, and a custom domain through GoDaddy.

What I would like is to have something like this:

myapp.example.com resolves to my app, and does not redirect.

What I am currently experiencing is:

myapp.example.com redirects (with a 307) to my-example-app.herokuapp.com

What I have done:

Following the Heroku guide for custom domains, I've done heroku domains:add myapp.example.com -a my-example-app and also added a cname to though the Godaddy UI for my domain.

CNAME myapp some-heroku-dns-somehash.herokudns.com

Any help, advice or pointers would be appreciated.

Edit: The 307 redirect is just due to the app redirecting to /sign-in. The issue that I am trying to resolve is using the custom domain, and not the heroku domain.

Author:Drew Ogryzek,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/53821650/heroku-custom-domain-with-godaddy
yy