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

Anton A. makexy at gmail.com
Fri May 1 17:28:35 MSD 2009


Всем привет!

Есть .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]

Спасибо!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20090501/820e0380/attachment.html>


More information about the nginx-ru mailing list