Answer the question
In order to leave comments, you need to log in
Transfer site to Modx from http to https?
Hello!
I have modx version 3, I wanted to redirect from http to https, in all manuals you need to change the "server_protocol" setting in the admin panel settings in the "System and Server" section, but there is no such setting in version 3 of the engine. Can someone suggest what to do?
Answer the question
In order to leave comments, you need to log in
The problem was solved, namely by changing the code along the path /core/config/config.inc.php:
if (!defined('MODX_URL_SCHEME')) {
$url_scheme= $isSecureRequest ? 'https://' : 'http://';
define('MODX_URL_SCHEME', $url_scheme);
}
if (!defined('MODX_URL_SCHEME')) {
$url_scheme= 'https://';
define('MODX_URL_SCHEME', $url_scheme);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question