Re[2]: Переделка rewrite rule из .htaccess под nginx

Evgeny Stepanischev se at lixil.ru
Tue Jul 17 17:37:45 MSD 2007


>> >> RewriteCond %{REQUEST_FILENAME} !-f
>> >> RewriteCond %{REQUEST_FILENAME} !-d
>> >> RewriteRule ^(.*)$ /index.php?path=$1&%{QUERY_STRING}

>> >     location / {
>> >         error_page  404 = /index.php?path=$uri&$args;
>> >     }

>> >     location = /index.php {
>> >         fastcgi_pass  ...
>> >         #proxy_pass   ...
>> >     }

>> может, лучше через "-e" сделать?

> Нет, error_page лучше.

Быстрее? У apache всё ровно наоборот
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20070717/d90fea3e/attachment.html>


More information about the nginx-ru mailing list