N
N
Nikita Kochnev2018-03-20 00:26:48
MODX
Nikita Kochnev, 2018-03-20 00:26:48

How can modx revo make friends with https?

Connected the lets encrypt ssl certificate in the hosting panel, in the modx admin panel, chose https in the system and server settings, .htaccess looks like this:

RewriteEngine On
RewriteBase /

# Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

# Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent 
# https://www.domain.com when your cert only allows https://secure.domain.com
RewriteCond %{SERVER_PORT} !^443
RewriteRule (.*) https://iserviceoren.ru/$1 [R=301,L]

# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

Everything on the site is broken, the pictures are not loaded immediately. Only if you press f5 3 or 4 times does the content load and fall into place. But if you press cntrl + f5 then the situation repeats. There are many errors of this kind in the console:
scripts.min.js:3 GET https://itservoren.ru/assets/app/img/iconsrepair... 509 () Plz
tell me where to dig?
Site here

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Kochnev, 2018-03-20
@1nks1

The problem turned out to be on the server side, one of the filters of the proxy server was disabled, everything worked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question