title: How to point all subdomains to index.php
body: <p>I'm trying to host a site on which user profile pages come with unique subdomains, such as username.sitename.com. I would like an Apache/VirtualHost solution for pointing *.sitename.com to sitename.com/index.php, where I could assort, which subdomain comes with a profile page and which would show 404 error.</p>
  
  <p>Please help me setting up the .htaccess</p>