Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Nginx rewrite ABO.cms
- To: nginx-ru@xxxxxxxxx
- Subject: Nginx rewrite ABO.cms
- From: Un Lexx <unlexx@xxxxxxxxx>
- Date: Mon, 2 Mar 2009 17:36:31 +0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=IrQSVvQKmTDEhXSox7L5SeOD0ry70e4xkW6p0mX6E8Q=; b=BDqI4XN2zbx0qM9F2LnyGPqvs4SIxnfwPSox52Dei0KOnKLS9+VW9Wi9KfjIEJLA7u oN3haH1rbQXqQfa+QaGRLO4U1vltw+XRfsfqgG+e+trh2af1NN+fLSOgtMoARiKAZQ4i /R+jIEu463r+C/Dw6kGNJGcTzwIFN+Z2Y6xuM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=rDvk9xfAUjglfw8QGHc+fTMpwwFp3H+hNNE4DgncPB6C+RewdaRjzd63nFEEs1zuiT Q93Bkj6A6uSC7IGR3CiaeiTGtya3ASWOfXdu0YISHfwYs70CU3aGfPrD7Q3adWrjBfbZ D2jGMrzUIiakjVBSCpSsnD5Evu1HPMaAwLiSk=
для апача правила выглядят как
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;
}
Правильно?
|