htaccess subdomain creation

Source:
http://stackoverflow.com/questions/5445978/htaccess-subdomain