ilyautkin/siteExtra

Добавить редирект с index.php

Closed this issue · 0 comments

if ($_SERVER['REQUEST_URI'] == '/index.php') {
    $modx->sendRedirect('https://' . $_SERVER['HTTP_HOST'], array('responseCode' => 'HTTP/1.1 301 Moved Permanently'));
}