Answer the question
In order to leave comments, you need to log in
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]
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question