Most of the SaaS companies, some social networking, and blog services (like Wordpress.com and blogger) create a personalized sub-domain for each user, e.g. username.website.com

What is the general practice for doing this. Do most of them really create a sub-domain or do they add some kind of URL redirects/routes for achieving this (assume Apache with mod_rewrite support).

link|improve this question
feedback

migrated from stackoverflow.com Jan 17 at 14:06

This question came from our site for professional and enthusiast programmers.

1 Answer

It's usually just wild card DNS along with server side programming that checks the hostname.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown