Subdomain redirect to Heroku

Posted August 20, 2014 7.4k views


I would redirect a subdomain to a heroku app (eg:

I tried remove A entry and add a CNAME entry with the url but doesn’t work.

Could someone help me? Any tip for this redirect works?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there!

Heroku has their own DNS management solution built into their product. You should be able to create a CNAME by running:

heroku domains:add

This should generate a DNS record like:

Record Name Target
CNAME blog

Check out Heroku’s own documentation on the process.