Heroku, GoDaddy, HTTPS, and Root Domains: How To Set It Up

Enable SSL, subdomains, forwarding, and make the correct DNS setup

Domagoj Lalk Vidovic

--

Photo by Danial Igdery on Unsplash

If you’re like me, you’ve probably stumbled across so many articles on connecting Heroku and GoDaddy.

And none of them did the trick.

I finally found a solution; by the time you finish reading this article, you should be able to:

  1. Have a secure connection in your app.
  2. Have https://yourdomain.com as your root domain.
  3. Redirect http://yourdomain.com, http://www.yourdomain.com, and https://www.yourdomain.com to your root domain.
That moment when you see “Connection is secure”

Why GoDaddy And Heroku Aren’t Compatible

Root domains on Heroku require the use of ALIAS,ANAME, or FLATTENING records.

However, they don’t exist on GoDaddy. That’s why it will never work properly!

I managed to find a few workarounds, but only https://www.yourdomain.com worked fine here; https://yourdomain.com was broken.

--

--

Domagoj Lalk Vidovic

CTO & Co-Founder of Sparroww. Owner of @tech_wizzdom. Sharing my thoughts on a journey to become the best version of myself