Hello everyone! I told him how I solved the problem. Long suffered. Inserts all sorts of different codes .htaccess but nothing helped. Make changes to the admin panel, did not help.
And all because the web server
Nginx, 301 redirect is configured in the configuration file
nginx.conf.
Harvesting /index.php and /forum.php in Nginx. Insert the following code to the configuration file:
Всем привет! Рассказываю как я решил проблему. Долго мучался. Вставлял всякие разные коды в .htaccess но ничего не помогало. Делал изменения в панели администратора, не помогало.
А всё потому, что в веб сервере
Nginx, 301 редирект настраивается в конфигурационном файле
nginx.conf.
Убираем /index.php и /forum.php в Nginx. Вставил следующие коды в конфигурационный файл:
Code:
location ~ ^/index.(html|php)$ {
if ($request_uri ~ ^/index.(html|php)) {
rewrite ^.*$ / permanent;
}
}
location ~ ^/forum.(html|php)$ {
if ($request_uri ~ ^/forum.(html|php)) {
rewrite ^.*$ / permanent;
}
}
Now requests /index.php /forum.php and will give 301 redirect to
http://glbyh.ru, and the site will be entirely work as before.
Теперь запросы на /index.php и /forum.php будут давать 301 редирект на
http://glbyh.ru, а сам сайт целиком будет работать как и прежде.
Check redirect here
http://www.prcy-info.ru/index.php/redirect-checker
Проверить наличие редиректа можно здесь
http://www.prcy-info.ru/index.php/redirect-checker