ПРОЕКТЫ 


  АРХИВ 


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]

Помогите пожалуйста с rewrite rul es


  • To: nginx-ru@xxxxxxxxx
  • Subject: Помогите пожалуйста с rewrite rul es
  • From: "Anton A." <makexy@xxxxxxxxx>
  • Date: Fri, 1 May 2009 16:28:35 +0300
  • 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; bh=E0voV2eeld8VzuQgHaDSjn7So4Q96xjShCazoAXGWT8=; b=DM2QdcPELkdAFktZfR7n8EY+5An8hPmJzM+Ex6TArCjGfbJYvvmAlYVjBb7FNi2sPY DvzuodfwQ3o+Xyt7++2ujjVZXuPlLK5klhkksLwDhWYejdIKdSBrw7o//yWF9A8jOCGj +O5l6CW6ol8Uckm6bD/IyrZY2yNqdtv4iwmfs=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XMejqcWJY6IKx6wa9yyVzGOJPiPRabxe1lhhuTyNhwcW3C9SJ91AzCh7mhyj1LsDXW 4xqwRU4rwnNuKQ6JKok/AG/mGe5sgpCsD/qNbEuKRwVKipakKlv130W/LkXwbxWyl8qs jJ/o3RiDD80KXF0LqYQ4/PU2mg7XgHQAWeaik=

Всем привет!

Есть .htaccess, я пытаюсь прописывать rewrite в nginx.conf (вне секций location), в таком виде
rewrite ^/installer/(.*)$ /installer/index.php last;
или
rewrite ^/installer/$ /installer/index.php last;

вместо

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^installer/(.*) installer/index.php [L]

и не работает! Помогите, где ошибка ?
 
.htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^shop/(repo_themes|js|3rdparty|images_common|products_pictures|images|themes|css)/(.*)$ published/SC/html/scripts/$1/$2?frontend=1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^shop/(imgval.php|wbs_messageserserver.php) published/SC/html/scripts/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(repo_themes|js|3rdparty|images_common|products_pictures|images|themes|css)/(.*)$ published/SC/html/scripts/$1/$2?frontend=1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(imgval.php|wbs_messageserserver.php|get_file.php) published/SC/html/scripts/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^shop(.*) published/SC/html/scripts/$1&frontend=1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^login/(.*) login/index.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^installer/(.*) installer/index.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^published/$ published/index.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^published
RewriteRule (.*) published/SC/html/scripts/index.php?__furl_path=$1&frontend=1 [QSA]

Спасибо!


 




Copyright © Lexa Software, 1996-2009.