W
W
WebmasterOffice2022-04-09 12:00:04
MODX
WebmasterOffice, 2022-04-09 12:00:04

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

1 answer(s)
W
WebmasterOffice, 2022-04-11
@WebmasterOffice

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

}

on the:
if (!defined('MODX_URL_SCHEME')) {
    
    $url_scheme=  'https://';

    define('MODX_URL_SCHEME', $url_scheme);

}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question