I've installed a clean OC 2.2.0.0 on a subdomain and want to force SSL on all pages.
I've altered the
Code: Select all
$_['site_ssl'] = false;
Code: Select all
$_['site_ssl'] = true;
Also I've changed the System/Library->url.php
Code: Select all
$url = 'http://' . $_SERVER
Code: Select all
$url = 'https://' . $_SERVER
The urls in config.php and admin/config.php are adjusted to https.
The .htaccess file is renamed and I've inserted the following code
Code: Select all
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
https://store.mydomain.com/category works (but not if you add a '/' to the end of the url)
but
https://store.mydomain.com/category/category-child or
https://store.mydomain.com/category/product
doesn't work; the CSS is broken.
CSS files like /catalog/view/theme/default/stylesheet/stylesheet.css and JS like /catalog/view/javascript/bootstrap/js/bootstrap.min.js are being added after the https://store.mydomain.com/category becoming https://store.mydomain.com/category/catalog/view/theme/default/stylesheet/stylesheet.css
How can I fix this?