title: How to force http- NOT https using htaccess
body: <p>I have ONE directory for my entire domain that I want to force https, which is "/docs". In the /docs folder, I have the following htaccess file:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  </code></pre>
  
  <p>This is forcing https to everything in the /docs directory, which is what I want it to do. The problem I am having is trying to force REMOVE https back to http for all other areas of my site. In the root folder of the site (which is running wordpress), I have the following htaccess file:</p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  
  RewriteCond %{HTTPS} on
  RewriteCond %{REQUEST_URI} !^/docs/?.*$
  RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
  </code></pre>
  
  <p>Unfortunately, this is not working. I can still access other areas of my site over https.</p>
  
  <p>What do I need to change to get this to work correctly?</p>