So I purchased a domain from 1and1, say it's www.mysite.com
, and am hosting my app on Heroku myapp.herokuapp.com
. I have two options for forwarding the domain - HTTP and Frame. HTTP forwarding seems to just redirect my URL from www.mysite.com
to myapp.herokuapp.com
, which isn't what I want. But I am having a problem with Frame redirecting - if I navigate on my site to various pages (e.g. myapp.herokuapp.com/users
), it will still say www.mysite.com
on the top, but not www.mysite.com/users
. How can I get the URL path to display correctly?
Go to the record editor and two DNS records, one for each host name, pointing to the Heroku SSL endpoint: Add an ALIAS record to point example.com to Heroku. Leave the Name of the record empty and set the Content field to the SSL endpoint example.com.herokudns.com. Add a CNAME record to point www.example.com to Heroku.
You don't want to use the (i)frame method - it's bad practice and you'll get the issues you're having now.
What you probably want to do is:
www
to yourapp.herokuapp.com
with your DNS provider, or use the Zerigo DNS[2] add-on if you don't have DNS hosting already (sounds like you do)[1] https://devcenter.heroku.com/articles/custom-domains [2] https://addons.heroku.com/zerigo_dns
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With