title: .htaccess mod_rewrite subdomains
body: <p>.htaccess:</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{HTTP_HOST} ^site\.com$ [NC]
  RewriteRule ^(.*)$ http://www.site.com/$1 [L,R=301]
  RewriteRule ^new/?$ index.php?section=new
  </code></pre>
  
  <p>This works great and all, but I have recently implemented a subdomain <code>m.site.com</code> which reads off of a <code>/mobile</code> directory. When accessing <code>m.site.com/new</code> it will not display anything except return a server error. What can I do to correct this problem?</p>
  
  <p>Basically, I want <code>http://m.site.com/new</code></p>
  
  <p>To achieve the same affect as <code>http://www.site.com/new</code></p>