title: Redirect all HTTP to HTTPS for a single folder only
body: <p>I have the following that redirects all HTTP:// requests to HTTPS:// (see below). However, I would like to do this ONLY for 1 folder called "account". </p>
  
  <p>So only requests to <a href="http://www.mydomain.com/account" rel="nofollow">http://www.mydomain.com/account</a> would turn into <a href="https://www.mydomain/account" rel="nofollow">https://www.mydomain/account</a>. </p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTPS} !on
  RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  </code></pre>
  
  <p>Can anyone help?</p>
  
  <p>--- UPDATE ---</p>
  
  <p>note that I would also like to ensure all requests outside of this folder remain normal HTTP and not HTTPS.</p>