Post by aqui » 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 fontsImage

Newbie

Posts

Joined
Thu May 14, 2020 4:09 pm

Post by straightlight » Mon Jun 28, 2021 7:47 pm

OC version. .htaccess, config.php and / or admin/config.php files configuration issues.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by rjcalifornia » Tue Jun 29, 2021 5:06 am

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?

Image
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by fegdeed » Tue Jun 29, 2021 1:11 pm

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.

Image
Get a secure, fast, and reliable web hosting service from https://turnuphosting.com/opencart-hosting/.


Active Member

Posts

Joined
Fri Sep 21, 2018 12:01 am

Post by aqui » 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/');

Newbie

Posts

Joined
Thu May 14, 2020 4:09 pm

Post by Cue4cheap » Thu Jul 01, 2021 9:43 am

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

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by aqui » Thu Jul 01, 2021 4:37 pm

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

Newbie

Posts

Joined
Thu May 14, 2020 4:09 pm

Post by Cue4cheap » 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

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by aqui » Tue Jul 06, 2021 4:13 pm

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 :) :)

Newbie

Posts

Joined
Thu May 14, 2020 4:09 pm

Post by EvolveWebHosting » Wed Jul 07, 2021 8:45 pm

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?

Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA
Who is online

Users browsing this forum: Majestic-12 [Bot], nonnedelectari and 66 guests