title: how to redirect complete site from HTTP To HTTPS except for 2 pages in Drupal Site?
body: <p>I have Drupal Site.</p>
  
  <p>I have checked all the below links, but either they don't redirect or I gets an error- Site has too many redirects</p>
  
  <ul>
  <li><a href="https://www.drupal.org/https-information" rel="nofollow noreferrer">https://www.drupal.org/https-information</a></li>
  <li><a href="https://stackoverflow.com/questions/14473719/redirect-all-the-data-served-by-https-to-http">Redirect all the data served by https to http</a></li>
  <li><a href="https://drupal.stackexchange.com/questions/24072/how-to-simply-make-the-whole-site-https">https://drupal.stackexchange.com/questions/24072/how-to-simply-make-the-whole-site-https</a></li>
  <li><a href="https://stackoverflow.com/questions/16200501/http-to-https-apache-redirection">http to https apache redirection</a></li>
  <li><a href="https://stackoverflow.com/questions/37088256/how-to-redirect-from-https-to-http/37088436">How to redirect from HTTPS to HTTP?</a></li>
  <li><a href="https://ilovedrupal.com/blog/redirect-http-https-apache-configuration-permanent-redirect-http-https-pages" rel="nofollow noreferrer">https://ilovedrupal.com/blog/redirect-http-https-apache-configuration-permanent-redirect-http-https-pages</a></li>
  </ul>
  
  <p>I need to redirect my complete site HTTP to HTTPS except for two pages:-</p>
  
  <ul>
  <li>Home - www.hello.com</li>
  <li>Products - www.hello.com/products</li>
  </ul>
  
  <p>The below code-snippet redirects complete site to HTTPS with no issue but I need to escape the Home &amp; products page &amp; for that I have tried about with more than 10-15 combinations.</p>
  
  <pre><code>   RewriteCond %{HTTPS} off [OR]
     RewriteCond %{HTTP_HOST} ^www.hello\.com*
     RewriteRule ^(.*)$ https://hello.com/$1 [L,R=301]
  </code></pre>
  
  <p>Any Help Highly appreciated.</p>