Forum: NGINX Rewrite rules. Please help!!

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
ksenux (Guest)
on 2009-05-01 16:30
(Received via mailing list)
Hi.

Please help to convert rewrite rules for nginx from .htaccess file.
Very much I hope for your help!

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

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

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

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

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

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

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

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

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

Thanx!!

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,1634,1634#msg-1634
This topic is locked and can not be replied to.