Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Проблема с rewrite
- To: nginx-ru@xxxxxxxxx
- Subject: Проблема с rewrite
- From: eMASTER <emstlk@xxxxxxxxx>
- Date: Thu, 14 Aug 2008 11:51:18 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:x-mailer:reply-to :x-priority:message-id:to:subject:mime-version:content-type :content-transfer-encoding; bh=jFy55c6dbycJLQuWZt50JO/mXNZVrzidCxmU8II3ALw=; b=gjvylVd2RSEOzRoK10GKt/3hoBOECfuN0sBWGNS8y/q0s3bVOyRx8o1pApp5qi6N1j H8WLn4zsaI9jJfmXiIVCS7c1mJdDM9gOi70EBJwjfc/tfo3cz/dx5ctoHmoImyBOpINH RJ+W4JJsko7JQFWy/nI1lFiSyk5vS0HomI4Yw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:x-mailer:reply-to:x-priority:message-id:to:subject :mime-version:content-type:content-transfer-encoding; b=JTNIOej7RFSavEXKQbRc24NxUp/hJkg/t4Ez4ehdUYBY3r9zZPtEKMf8Be2G5D3L7e gjwxHyt2LjKPw7YHDkgnGOnk+8Q1C4HpIvOOSY+cvT8tWBwAEDuV2P3ovCnbKzjWtzxa +6PXH4+DKh2etoazDUG+zkkynDUZFyJrSf/JI=
Здравствуйте,
Прошу помочь разобраться со следующей проблемой:
нужно перевести маленький .htaccess под nginx
=================================================
код htaccess:
AddDefaultCharset UTF-8
DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
=================================================
код nginx:
location / {
root /var/www;
index index.php;
if (!-f $request_filename){
rewrite .* /index.php last;
}
if (!-d $request_filename){
rewrite .* /index.php last;
}
}
=================================================
В firefox 3 выводит ошибку "Redirect Loop", как лечить?
--
С уважением,
eMASTER mailto:emstlk@xxxxxxxxx
|