Welcome! Log In Create A New Profile

Advanced

проблема с try_files

February 17, 2011 08:11PM
всем добра

есть ссылка http://test.org/blog/1-tests-блог/
в настройках сайта стоит перемещать(301) на правильную ссылку если текст после ид неверный
если конфиг
[code]
location / {
root /srv/test;
index index.php index.html index.htm;
try_files $uri $uri/ /index.php?$uri;
}
[/code]
то происходит чудный цикл перенаправлений

а если
[code]
location / {
root /srv/test;
index index.php index.html index.htm;
if (!-e $request_filename) {
rewrite ^(.*) /index.php?$1 last;
}
}
[/code]
то все замечательно

что я делаю не так ?
и если не я - будет ли фикс ?
Subject Author Posted

проблема с try_files

ZLOFENIX February 17, 2011 08:11PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 287
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready