title: Folder to subdomain when autoappending www
body: <p>We have a <code>.htaccess</code>-file like this:</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  
  RewriteCond %{HTTP_HOST} .
  RewriteCond %{HTTP_HOST} !^www\.mysite\.no [NC]
  RewriteRule (.*) http://www.mysite.no/$1 [R=301,L]
  </code></pre>
  
  <p>Which autoappend <code>www</code> in front of the URL if it's missing. In addition we have to expand our site to a mobile version that we'd like to call <code>m.mysite.no</code>.</p>
  
  <p>How do you do this and make the mod_rewrite ignore the <code>www</code>-rule? Unfortunately, this site is live, so we can't do much testing and we have little experience on the field.</p>