Настройка MODX

Find

find . -type f -name '*.php' -exec sed -i -r 's#что#на_что#g' {} \;

Update

wget -O modx.zip https://modx.com/download/direct?id=modx-2.6.5-pl.zip

Редирект в .htaccess

RewriteRule ^/novosti/old\.html$   /novosti/new.html [R=301,NC,L]
RewriteRule ^/albums/old/$         /albums/new/      [R=301,NC,L]

RewriteRule g6085516       https://mysite.ru/gipsovinil-gipsol1.html            [R=301,NC,L]
RewriteRule p55184303.html https://mysite.ru/catalog/stroitelnyij-inventar/     [R=301,NC,L]

http -> https

RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP:HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://www.gipsall.ru/$1 [R=301,L]
SetEnvIf X-Forwarded-Proto https HTTPS=on
core/config/config.inc.php
- $url_scheme=  $isSecureRequest ? 'https://' : 'http://';
+ $url_scheme=  'https://';