How to use a non-www domain with heroku?

dsp_099 picture dsp_099 · Dec 23, 2012 · Viewed 8.4k times · Source

I know they don't support it, but seriously, how to do it? Point A-records to an ip which only serves up a 301 to heroku? That sounds really dumb. Am I missing something?

Is there a simpler workaround?

Answer

darrendev picture darrendev · Feb 17, 2017

There is a simpler workaround.

Point your www CNAME to myapp.herokuapp.com

Then forward your root url (myapp.com) to www.myapp.com