title: Force HTTPS except with certain directories
body: <p>I'm using the following .htaccess file to force any page request to https://</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  
  #Force SSL
  RewriteCond %{HTTPS} !on
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
  </code></pre>
  
  <p>How could I modify this script to continue to force https:// except in specified directories like <a href="http://example.com/api/" rel="nofollow">http://example.com/api/</a> ("api" folder)?</p>