ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RewriteCond в Nginx



On Tue, Aug 12, 2008 at 04:28:50PM +0300, Serg Senko wrote:

> Пытаюсь сделать такой rewrite в NGINX и уйти на половине серверов с Apache.
> Кто то может с этим помочь ?
> 
> RewriteCond %{REQUEST_URI} !^.*\..{2,4}$ [NC]
> RewriteRule ^(.*) index.php [L,NC]

     location / {
         rewrite  ^ /index.php;
     }

     location = /index.php {
         ...
     }

     location ~ \..{2,4}$ {
         ...
     }


-- 
Игорь Сысоев
http://sysoev.ru



 




Copyright © Lexa Software, 1996-2009.