Question

Subdomain redirect to Heroku

Posted August 20, 2014 6.8k views

Hello

I would redirect a subdomain to a heroku app (eg: test.herokuapp.com)

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?

Thanks

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.

×
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 blog.example.com

This should generate a DNS record like:

Record Name Target
CNAME blog test.herokuapp.com.

Check out Heroku’s own documentation on the process.

Submit an Answer