I\'m new to this community, but I\'ve found it really useful time to time.
I\'ve searched for the answer a lot, but I didn\'t find anything like I need. I\'ve tried to s
Try these rules instead (replace appropriate lines):
RewriteCond %{HTTPS} on [NC]
RewriteCond %{REQUEST_URI} !^/(member|shop)/ [NC]
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [L,R=301]
RewriteCond %{HTTPS} off [NC]
RewriteCond %{REQUEST_URI} ^/(member|shop)/ [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]
/member/
and /shop/
controllers (e.g. /member/login
, /member/dashboard
, /member/orders/15423/invoice
etc)!
should be before ^
in RewriteCond directive -- if you want your own rules then replace RewriteCond $1 ^!((member|shop)/(?!(index|login))(.*))
by RewriteCond $1 !^((member|shop)/(?!(index|login))(.*))