K
K
kk952019-04-25 12:37:36
opencart
kk95, 2019-04-25 12:37:36

Why does https "work" only on the homepage?

Opencart 2.3

1) I received an SSL certificate from the host (free Let's Encrypt)

2) in .htaccess I wrote:

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://%{HTTP_HOST}% {REQUEST_URI } [R=301,L]

3) in config.php
HTTPS
define('HTTPS_SERVER', ' https://site.ru/ ')

4) in admin/config.php
HTTP
define('HTTP_SERVER', ' https://site.ru/admin/ ');
define('HTTP_CATALOG', ' https://site.ru/ ');

HTTPS
define('HTTPS_SERVER', ' https://site.ru/admin/ ');
define('https://site.ru/ ');

5) in the admin panel of the site settings-server clicked "use SSL"

As a result, when I enter the https:// address of the site, then everything is OK - the main page opens, and there is a "lock" in opera and chrome. But the transition to any page - and already instead of the lock the inscription "unreliable", including if I return to the main page back.

The site is new, I haven't done anything with seo yet, if it has anything to

do with it What else is required for https to work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2019-04-25
@vintello

at least test this:

  1. change all links within the site to links without http. The link "http: //docs.google.com" should be changed to "//docs.google.com";
  2. make sure that all content is not loaded using the http protocol. Link to images like "http: //domain.com" should be changed to //com/image.png;
  3. check that all third-party modules are loaded not via http, but via https.

A
Alexey, 2019-04-30
@Gnanw

in the config file, first write https everywhere. Specify redirection in the hosting settings, knock on the hosting technical support - they will fix it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question