Problem: When I view https://www.mysite.com/opencart/index.php, the images are not using HTTPS, thus causing a warning on the SSL "... this page includes resources that are not secured" (on Google Chrome browser).
Question: How do I force all images to use HTTPS? (so there is no warning on SSL)
I am not 100% sure but under my config.php I have
// HTTPS
define('HTTPS_SERVER', 'https://www.website.co.uk/');
define('HTTPS_IMAGE', 'https://www.website.co.uk/image/');
and under admin/config.php
// HTTPS
define('HTTPS_SERVER', 'https://www.website.co.uk/admin/');
define('HTTPS_CATALOG', 'https://www.website.co.uk/');
define('HTTPS_IMAGE', 'https://www.website.co.uk/image/');
both contain image https, I don't know much about SSL but maybe that will help?
// HTTPS
define('HTTPS_SERVER', 'https://www.website.co.uk/');
define('HTTPS_IMAGE', 'https://www.website.co.uk/image/');
and under admin/config.php
// HTTPS
define('HTTPS_SERVER', 'https://www.website.co.uk/admin/');
define('HTTPS_CATALOG', 'https://www.website.co.uk/');
define('HTTPS_IMAGE', 'https://www.website.co.uk/image/');
both contain image https, I don't know much about SSL but maybe that will help?
@ jasong - Could I ask which version of OpenCart you are using?
I am using the latest version (v1.5.6.4) and don't have
define('HTTPS_IMAGE', 'https://www.website.co.uk/image/');
in the config.php
I am using the latest version (v1.5.6.4) and don't have
define('HTTPS_IMAGE', 'https://www.website.co.uk/image/');
in the config.php
I am using v1.5.6.4 as well, I don't know much about coding but that was in my file, you could try adding it to see what happens as its easily removed if it doesn't work.
Best contact your host who supplied the SSL as they should be able to fix the issue
Best contact your host who supplied the SSL as they should be able to fix the issue
You don't need the 'image' line for v1.5.6.4 and I personally wouldn't recommend forcing SSL for the entire site. There's no need to do so, it slows down the loading of the site and can break a lot of the cart functionality.jasong wrote:I am using v1.5.6.4 as well, I don't know much about coding but that was in my file, you could try adding it to see what happens as its easily removed if it doesn't work.
Best contact your host who supplied the SSL as they should be able to fix the issue
You can use the site whynopadlock.com to debug pages that aren't secure.
DL
This account is inactive. Look for us under the name 'EvolveWebHosting' and contact us under that username.
Thanks!
Who is online
Users browsing this forum: No registered users and 19 guests