title: Redirect only FQDN and www. to HTTPS
body: <p>Currently I have the following RewriteRules in place to redirect users to HTTPS:</p>
  
  <pre><code># Force all request to HTTPS URLs                                                    
  RewriteCond %{HTTP:X-Forwarded-Proto} !https                                         
  RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=302,L]
  </code></pre>
  
  <p>It redirects all traffic though and I would like it to only do so for FQDN and www. sudomain.</p>
  
  <p>So redirect:</p>
  
  <ul>
  <li>example.org</li>
  <li>www.example.org</li>
  </ul>
  
  <p>Examples not to be redirected:</p>
  
  <ul>
  <li>example.example.org</li>
  <li>www.example.example.org</li>
  <li>blog.example.org</li>
  </ul>
  
  <p>What <code>RewriteCond</code> statements do I need to add to make this so?</p>