htaccess, https, and www

So using htaccess file I want to kick all requests to the non-www url, and rewrite all requests to to I'll choose which pages to be https later..

what i have in /.htaccess so far mostly works:

RewriteEngine On
## rewrite base:
#RewriteBase /subFolder

## redirect all? to non-www site: -----------------------
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]

## base website url redirect to /subFolder ---------------
#-RewriteCond %{HTTP_HOST} ^(www\.)?$ [NC]
RewriteCond %{REQUEST_URI} !^/
RewriteRule ^$ http%{ENV:protossl}://%{HTTP_HOST}/subFolder/ [L]
RewriteRule ^(/)?$ subFolder/ [L] 

## Rewrite non-file/directory URL's -----------------------
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/subFolder/
RewriteRule ^(.*)$ /subFolder/$1 [L]

And in /subFolder/.htaccess:

RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]

RewriteBase /subFolder

Results are:

On http:
√ non-www => non-www
√ www => non-www
√ subFolder is always hidden in url

On https:
√ non-www => non-www
X www => Redirected to htp://non-www
√ subFolder is always hidden

Everything works as desired except for https requests that include www .