I’m using the subdomains as accounts method fine on a project, but
I’m wondering what is the best way to differentiate between account
subdomains to access the app using an account, and www.domain.com and
domain.com in order to show normal site content.
I’ve noticed that on Backpack, it seems that when you leave the
information pages and start using the app, such as signing up or
logging in, takes you to 123.backpackit.com. On Strongspace, they
have www.strongspace.com/* go to all the informational pages, as well
as signup. I have, however, noticed that if you try to enter
strongspace.com it redirects to www.strongspace.com. Finally, on
Basecamp, all the actual accounts are on one of their other domains,
such as clientsection.com and updatelog.com, and the signup process
takes you to secure.basecamphq.com. I’d prefer to use one domain like
So, what would be the recommended way for handling this? Is it
handled at the server level, or in Rails?
Thanks for your help.