title: In my .htaccess I want to Rewrite the url ONLY in case there is no subdomain in the url
body: <p>I would like example.com to rewrite to www.example.com but only when there is no subdomain in the url:</p>
  
  <pre><code>example.com -&gt; rewrite to www.example.com
  
  s.example.com -&gt; no rewrite
  
  peace.example.com -&gt; no rewite
  </code></pre>
  
  <p>etc..
  etc..</p>
  
  <p>All the subdomain rewrites I found add the www regardless of it having a subdomain or not and that is messing me up. I do not want it to redirect to www.c.example.com</p>