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.