title: Simple .htaccess subdomain rewrite
body: <p>I know there is a lot of questions on here about this... but right now I feel like a deer stunned by oncoming headlights... I just don't know where to start and which option to choose.</p>
  
  <p>My requirements are simple.</p>
  
  <p>User goes to <a href="http://application.domain.com" rel="nofollow">http://application.domain.com</a> or <a href="http://www.application.domain.com" rel="nofollow">http://www.application.domain.com</a> and the real location of these files is <a href="http://www.domain.com/application" rel="nofollow">http://www.domain.com/application</a></p>
  
  <p><strong>Obviously this needs to be done using wildcards so that any domain (even if it doesn't exist) triggers the rewrite.</strong></p>
  
  <p>I hope this makes sense to someone</p>
  
  <p><strong>EDIT:
  I should also mention I have added the wildcard A record to my DNS entries in Cpanel *.domain.com</strong></p>
  
  <p>Thanks</p>
  
  <p>Tim</p>