Post by NewB101 » Mon May 19, 2014 10:46 pm

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)

Newbie

Posts

Joined
Mon May 19, 2014 2:45 pm

Post by jasong » Mon May 19, 2014 11:52 pm

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?

New member

Posts

Joined
Wed Mar 24, 2010 5:09 am

Post by NewB101 » Tue May 20, 2014 12:55 pm

@ 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

Newbie

Posts

Joined
Mon May 19, 2014 2:45 pm

Post by jasong » Tue May 27, 2014 6:26 am

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

New member

Posts

Joined
Wed Mar 24, 2010 5:09 am

Post by cwswebdesign » Tue May 27, 2014 11:39 am

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 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.

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!


User avatar
Active Member

Posts

Joined
Sun Dec 11, 2011 12:26 am
Location - USA
Who is online

Users browsing this forum: No registered users and 19 guests