title: Rewrite specific subdomain to https
body: <p>I am trying to get some images working through a CDN which is setup as a CNAME to point to a specific URL which then catches my assets. </p>
  
  <p>Right now I'm working on my stage server. I am needing to only rewrite stage.domain.com to https and leave the cdn.domain.com intact. </p>
  
  <pre><code>    # Force to HTTPS
      RewriteCond %{HTTP_HOST} ^domain\.com [NC]
      RewriteCond %{SERVER_PORT} 80 
      RewriteRule ^(.*)$ https://stage.domain.com/$1 [R,L]
  </code></pre>
  
  <p>However, when I use this, it catches the cdn.domain.com and rewrites that as well. How can I specify to ignore that URL?</p>