1
votes

I'm hosting a Rails app on Heroku, using the Zerigo DNS. I've added both www.mydomain.com and http://mydomain.com.

My question is this: what is the best way to add a redirect so that http://mydomain.com redirects to www.mydomain.com? Would it be better to add the redirect on Zerigo? Or write some code in Rails to do the redirecting?

Any thoughts are much appreciated.

2
Support no nonsense DNS config and host with DNSimple! They rock. (I don't work for them, I honestly think they rock)OneChillDude
bwheeler96, I'll look into DNSimple. Thanks for the tipAlekx

2 Answers

1
votes

Add a CNAME record with www host and simply point it to your http://whateverapp.heroku.com

It works for me perfectly!