title: How to create dynamic subdomain using PHP and htaccess?
body: <p>I have one problem:
  I want to set up PHP and htaccess to make dynamic subdomains. And I can not figure out how.
  Currently my URL looks like this:</p>
  
  <pre><code>www.exemple.com/index.php?subdomain=mike&amp;component=content&amp;id=26&amp;title=people-love-apps 
  </code></pre>
  
  <p>I need it to look like this:</p>
  
  <pre><code>www.mike.exemple.com/content/26/people-love-apps.html
  </code></pre>
  
  <p>I know it can be done but I do not know a solution how to do it.
  Is very important to me with $ _GET [] functions to read parameter in the URL.</p>
  
  <p>The problem is that users on my site make their web site and get a free domain (sub-domain) automatically. This should be automatic.</p>
  
  <p>Thanks!</p>