Page 1 of 1

config.php details for SSL

Posted: Sat Jun 01, 2013 9:58 pm
by Matty
Hi, I have just installed my SSL certificate with opencart v1.5.1

Do I need to change the following URL's from "http://" to "https://" ?

config.php file...

Code: Select all

// HTTPS
define('HTTPS_SERVER', 'http://www.mysite.com/store/');
define('HTTPS_IMAGE', 'http://www.mysite.com/store/image/');
admin/config.php file...

Code: Select all

// HTTPS
define('HTTPS_SERVER', 'http://www.mysite.com/store/admin/');
define('HTTPS_IMAGE', 'http://www.mysite.com/store/image/');
Thanks
Matt

Re: config.php details for SSL

Posted: Sat Jun 01, 2013 10:43 pm
by victorj
yes

Re: config.php details for SSL

Posted: Sun Jun 02, 2013 7:54 pm
by Matty
Thanks very much.

Do URL's under the "// HTTP" heading also have to begin with "https://" for SSL-based sites?

config.php file...

Code: Select all

// HTTP
define('HTTP_SERVER', 'https://www.mysite.com/store/');
admin/config.php file...

Code: Select all

// HTTP
define('HTTP_SERVER', 'https://www.mysite.com/store/admin/');
define('HTTP_CATALOG', 'https://www.mysite.com/store/');
By default under clean install for v1.5.5.1 they are set to "https://" but my page loads without images or css showing. When I change "https://" to "http://" it works fine but is this the correct config for an SSL-based site?

Thanks
Matt