I've registered addon.tld and updated its DNS entries to point to my ns*.hostingrails.com name servers. I've also set up addon.tld in cPanel as an add-on domain to my real domain primary.tld, which is a Rails app.
But navigating to addon.tld is redirecting to http://www.primary.tld/addon.tld . This is causing Rails to fail with a 404. Technically, the files should be served from ~/public_html/addon.tld, but more importantly, I shouldn't be redirected away from addon.tld in my browser, should I?
Thanks for any help!