My htaccess has this :
In the admin dashboard: settings -> Stores -> second store - >GeneralRewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301,NC]
RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Store URL : https://sub.example.com/
settings -> Stores -> second store - >Server SSL is set to YES
My OC version is 2.3.0.2 Also, I want to force http to https. Any help would be appreciated.