First off, be sure to enable SSL in the admin area, Config -> Store-settings -> Server
Edit your .htaccess file ( in root folder );
- RewriteBase /opencartsubfoler
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://www.opencartsite.com/opencartsubfoler/ [R]
If OC is in your root folder leave the / so that the line looks like this --> "RewriteBase /"
Ignore line 2 to line 7.
RewriteCond %{HTTPS} off // Checks if the url has https:// if not then do...
RewriteRule (.*) https://www.opencartsite.com/opencartsubfoler/ [R]
What this does it redirects all non www (http://opencartsite.com/opencartsubfoler/) and www (http://www.opencartsite.com/opencartsubfoler/) to https://www.opencartsite.com/opencartsubfoler/
The only thing it doesn't do is redirect https://opencartsite.com/opencartsubfoler/ to https://www.opencartsite.com/opencartsubfoler/
Has anyone got an idea? I'm open for any critical suggestions or alternative solutions!