User-based subdomains [closed]?

You can set the ServerAlias directive in your VirtualHost configuration to *. Mysite.com. You can then use mod_rewrite in the .

Htaccess to append the username to the URL, or use PHP to pull the subdomain off the requested URL, and do whatever you want with it.

I am looking to implement user based subdomains in my application. Im hoping that people here can guide me through this or chip in some tips and tricks on how to go about doing this."Subdomain" is an attribute of the Account model. Right now, I keep the subdomain value in the sessions hash alongwith the account_id after the user logs in, for further use.

And the URLs are of the format http://localhost:3000/accounts/23/etc..Id like to remove the '/accounts/23' part and just have the accounts subdomain in the URL instead, like http://subdomain. Localhost:3000/etc..In short, 37 signals style URLs.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions