The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
||||
|
||||
![]()
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; } } Теперь запросы на /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 |
Благодарность от: | ||
ikopylov |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|