Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question

migrated from stackoverflow.com Jan 17 '12 at 14:06

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

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.