|
|
|
|
АРХИВ :: nginx-ru
|
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Не могу переписать правил а mod_rewrite
- To: nginx-ru@xxxxxxxxx
- Subject: Не могу переписать правил а mod_rewrite
- From: "nalim[1nc]" <nalim1nc@xxxxxxxxx>
- Date: Mon, 22 Nov 2010 23:42:13 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=FeUYgeSuv6cfA4s7I+Gx/sElc4QNJO4q/mGnE5Iv8i4=; b=frdG5bhsLuL6MyF3cl679H5N5sxFFsA0j0a033nXwOGGWhNNEyk1w7+N+ulnDBctfB sGJrTgx1MIn1Yhz1poLabGdNY6QHKAMOdwuN8HnyfEffPV0ZsyM1UNheTIqLYODWp4TK 0thNXMgGsjEPb3LF1wrmNDDWlQPqo/PheWgqY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hn58RTki/9ppAYHK5rFZ9m6VEb8z08HpasKnAPwJ7ONDg0fT2BYCbVgcsaMSSiins5 9MLpwaeIs8XVX+UzX8yingpS7sk/viK6ZDLfhDp6J7nCLttNMX7O+sHpIMR8H67ZHDMy ynp0gu6UuCsk0oqArvpK36SMZOOc5g421RlL0=
Здравствуйте.
Есть правила mod_rewrite, но все попытки переписать их под nginx не привели к успеху. Помогите, пожалуйста.
RewriteCond %{HTTP_HOST} ^site\.ru RewriteRule ^(.*)$ http://www.site.ru/$1 [R=301,L]
RewriteRule ^admin$ /admin/ [R] RewriteRule ^member$ /member/ [R] RewriteRule ^([^.]*[^./]\.html)?$ /php/index.php [L]
>RewriteCond %{HTTP_HOST} ^fastcook\.ru
>RewriteRule ^(.*)$ http://www.fastcook.ru/$1 [R=301,L] server { if ($http_host = site.ru) { rewrite ^(.*)$ http://www.site.ru$1 last;
} } >RewriteRule ^admin$ /admin/ [R]
>RewriteRule ^member$ /member/ [R] >RewriteRule ^([^.]*[^./]\.html)?$ /php/index.php [L] location { rewrite ^/admin$ /admin/ redirect;
rewrite ^/member$ /member/ redirect;
if (!-e $request_filename) { rewrite ???????? } }
Спасибо.
-- С уважением, Андрей.
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|
|
|