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: Nginx rewrite ABO.cms



On Mon, Mar 02, 2009 at 05:36:31PM +0500, Un Lexx wrote:

>     
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^(rus|ukr|blr|de|frn|eng)*/?([^?]+)?$
> index.php?lang=$1&link=$2 [NC,QSA,L]
> 
>   nginx
> if (!-e $request_filename) {
>         rewrite ^(rus|ukr|blr|de|frn|eng)*/?([^?]+)?$
> index.php?lang=$1&link=$2 last;
>     }
> 
> ?

,  :

if (!-e $request_filename) {
- rewrite ^(rus|ukr|blr|de|frn|eng)*/?([^?]+)?$ index.php?lang=$1&link=$2 last;
+ rewrite ^/(rus|ukr|blr|de|frn|eng)*/?(.+)?$   /index.php?lang=$1&link=$2 last;
}


-- 
 
http://sysoev.ru



 




Copyright © Lexa Software, 1996-2009.