title: How to exclude subdomains from redirecting?
body: <p>I have this code to force any URL to be "<a href="https://www">https://www</a>.":</p>
  
  <pre><code>#rewrite to WWW:
  RewriteCond %{HTTP_HOST} !^(\d+)
  RewriteCond %{HTTP_HOST} !^www\.
  RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  
  #Now, rewrite to HTTPS:
  RewriteCond %{HTTP_HOST} !^(\d+)
  RewriteCond %{HTTPS} off
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  </code></pre>
  
  <p>I have sub-domains and I do not want any of them to be redirected. What can I do?</p>