Pointing A Domain To Your Heroku App

Posted by Weston Ganger

I was having trouble with my domain being redirected to my app. At the time I had my domain from GoDaddy although I think it applies to any DNS.

Here are the steps to set it up.


# Run this command in your terminal
heroku domains:add www.example.com

Then go to your DNS records on GoDaddy or your Domain Name Registrar.

Create a CNAME record: Host: www Points To: example.herokuapp.com

Also add a forwarding record to redirect example.com to www.example.com


Related External Links:

Article Topic:Software Development - Web Development

Date:April 27, 2015

Recommended Posts

Contact

604-309-8713
info@solidfoundationwebdev.com

Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected