Page 1 of 1

SSL certificate Help

Posted: Mon Jun 28, 2021 6:56 pm
by aqui
Hello. If someone can help me. I have the store installed in subdomain. When I activate .ssl, the store is a mess. No images, styles or fontsImage

Re: SSL certificate Help

Posted: Mon Jun 28, 2021 7:47 pm
by straightlight
OC version. .htaccess, config.php and / or admin/config.php files configuration issues.

Re: SSL certificate Help

Posted: Tue Jun 29, 2021 5:06 am
by rjcalifornia
aqui wrote:
Mon Jun 28, 2021 6:56 pm
Hello. If someone can help me. I have the store installed in subdomain. When I activate .ssl, the store is a mess. No images, styles or fonts
Do you have an SSL certificate installed? Or you just activated SSL in the store settings?

Re: SSL certificate Help

Posted: Tue Jun 29, 2021 1:11 pm
by fegdeed
If you already have a valid SSL installed, check your config.php files, one in root, and the other in admin.

In root config.php file, change from

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://yourdomain.com/');

// HTTPS
define('HTTPS_SERVER', 'http://yourdomain.com/');
to

Code: Select all

// HTTP
define('HTTP_SERVER', 'https://yourdomain.com/');

// HTTPS
define('HTTPS_SERVER', 'https://yourdomain.com/');
In admin folder's config.php file, change from

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://yourdomain.com/admin/');
define('HTTP_CATALOG', 'http://yourdomain.com/');

// HTTPS
define('HTTPS_SERVER', 'http://yourdomain.com/admin/');
define('HTTPS_CATALOG', 'http://yourdomain.com/');
to

Code: Select all

// HTTP
define('HTTP_SERVER', 'https://yourdomain.com/admin/');
define('HTTP_CATALOG', 'https://yourdomain.com/');

// HTTPS
define('HTTPS_SERVER', 'https://yourdomain.com/admin/');
define('HTTPS_CATALOG', 'https://yourdomain.com/');
and refresh your browser.

Re: SSL certificate Help

Posted: Wed Jun 30, 2021 5:02 pm
by aqui
Thanks for your help. I have a test store 3.0.3.3 and another store that is running 3.0.3.6 and I'm afraid to edit in case there is a problem. I have the certificate installed on my server and activated the opencart. The two stores have the same problem
In root config.php

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://mydomain.com/lonja/');

// HTTPS
define('HTTPS_SERVER', 'http://mydomain.com/lonja/');
In admin folder's config.php

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://mydomain.com/lonja/admin/');
define('HTTP_CATALOG', 'http://mydomain.com/lonja/');

// HTTPS
define('HTTPS_SERVER', 'http://mydomain.com/lonja/admin/');
define('HTTPS_CATALOG', 'http://mydomain.com/lonja/');

Re: SSL certificate Help

Posted: Thu Jul 01, 2021 9:43 am
by Cue4cheap
aqui wrote:
Wed Jun 30, 2021 5:02 pm
Thanks for your help. I have a test store 3.0.3.3 and another store that is running 3.0.3.6 and I'm afraid to edit in case there is a problem. I have the certificate installed on my server and activated the opencart. The two stores have the same problem
In root config.php

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://mydomain.com/lonja/');

// HTTPS
define('HTTPS_SERVER', 'http://mydomain.com/lonja/');
In admin folder's config.php

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://mydomain.com/lonja/admin/');
define('HTTP_CATALOG', 'http://mydomain.com/lonja/');

// HTTPS
define('HTTPS_SERVER', 'http://mydomain.com/lonja/admin/');
define('HTTPS_CATALOG', 'http://mydomain.com/lonja/');
As mentioned before... change from http to https

Mike

Re: SSL certificate Help

Posted: Thu Jul 01, 2021 4:37 pm
by aqui
Thank you. SSL certificate already works. I have another problem. In Mozilla there is an unsecured connection (images) and it does not show two of themImage

Re: SSL certificate Help

Posted: Fri Jul 02, 2021 10:34 am
by Cue4cheap
To quote above: .htaccess, config.php and / or admin/config.php files configuration issues.

You need to check your configs.
Maybe provide a link to your site?

Mike

Re: SSL certificate Help

Posted: Tue Jul 06, 2021 4:13 pm
by aqui
Cue4cheap wrote:
Fri Jul 02, 2021 10:34 am
To quote above: .htaccess, config.php and / or admin/config.php files configuration issues.

You need to check your configs.
Maybe provide a link to your site?

Mike
Hello. And it is working. To see all the images in Mozilla, I had to add code

Code: Select all

// HTTP
define('HTTP_SERVER', 'https://mydomain.com/lonja/admin/');
define('HTTP_CATALOG', 'https://mydomain.com/lonja/');
define('HTTP_IMAGE', 'https://mydomain.com/lonja/image/');
// HTTPS
define('HTTPS_SERVER', 'https://mydomain.com/lonja/admin/');
define('HTTPS_CATALOG', 'https://mydomain.com/lonja/');
define('HTTP_IMAGE', 'https://mydomain.com/lonja/image/');
Thank you very much to everyone for your help :) :)

Re: SSL certificate Help

Posted: Wed Jul 07, 2021 8:45 pm
by EvolveWebHosting
Your config files are not default at all. If it's working, I guess it's ok to leave it.

Why is everyone so secretive about posting their actual domain?