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