How to add custom domain to Heroku [Godaddy version]
Published in
1 min readApr 26, 2016
The instructions on Heroku Custom Domains are good but not comprehensive enough for Godaddy. Here are the instructions on how to add a custom domain (which is registered with Godaddy) to a heroku app:
- Add the full custom domain www.example.com to Heroku app using -
$ heroku domains:add www.example.com
- Log in to your Account Manager.
- Next to Domains, click Launch.
- Change the www CNAME entry for your domain to point to your-herokuapp.herokuapp.com.
That’s it. This will redirect all the requests to www.example.com to your-herokuapp.herokuapp.com.
Now to setup naked domain redirection i.e. example.com to www.example.com which in turn redirects to your herokuapp, follow the below steps:
- Log in to your Account Manager.
- Next to Domains, click Launch.
- Select the domain name you want to forward.
- Click Forward, and then select Forward Domain.
- Select http:// or https:// depending on your server settings.
- In the Forward to field, enter the URL you want to forward your domain name to.
- To automatically update your nameservers to accommodate your forwarding changes, select Update my DNS setting to support this change.
- Click OK.
All set! Wasn’t that easy?
Originally published at vickypedia.me.