I was wondering is it's possible to force some specific pages from non-www/http to www/https and keep some other ones with non-www/http.
Example
From non-www/http to www/https:
http://example.com to https://www.example.com
but these ones will remain non-www and http:
I have tried to add in the htaccess file this rule condition:
RewriteEngine On
# Enable HTTPS and WWW for homepage
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{HTTPS} off
RewriteRule ^$ https://example.com/ [R=301,L]
# Disable HTTPS and WWW for all pages
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{HTTPS} on
RewriteRule . http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
Then it should force to https and www just the homepage and leave the other pages like /folder1/ and /folder2/ to htpp non-www.
But it seems not working well