title: Preventing htaccess rewrite condition
body: <p>I am using this rewrite condition to rewrite urls like domain.com to </p>
  
  <blockquote>
    <p>www.domain.com</p>
  </blockquote>
  
  <pre><code>RewriteCond %{HTTP_HOST} !^www\.
  RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
  </code></pre>
  
  <p>problem is that it is also redirecting mobile version of url. i.e.</p>
  
  <blockquote>
    <p>m.domain.com to www.m.domain.com</p>
  </blockquote>
  
  <p>How can I prevent this.</p>