Need help to convert .htaccess to nginx rules

[code]<Files *.htm>
#Compress
SetOutputFilter DEFLATE

Options +FollowSymLinks
RewriteEngine on
RewriteBase /

please use .php at url for admin

RewriteRule ^recent-articles-feed rss.php [NC]
RewriteRule ^rss/([^/]+) rss.php?q=$1 [NC]

To ignore htaccess - enlist here

RewriteCond $1
!^(index.php|ftpservice|demo|ftpdb|MDF|phpsysinfo|admin|templates|links|api|forum|articles|imageGallery|language|includes|ajax|resources|fonts|images|parse|directory|uploads|system|rss.php|robots.txt|sitemap.php|Sitemap.xml|sitemap.xml|sitemap2.xml|urllist.txt)

RewriteRule ^(.*) index.php [NC] [/code]

This is my htaccess content .

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236960,236960#msg-236960

maybe this helps as a start:
http://stackoverflow.com/questions/5840497/convert-htaccess-to-nginx

and you may want to read
http://wiki.nginx.org/HttpCoreModule#location
http://wiki.nginx.org/HttpRewriteModule

since usage and order-of-procerssing is quite a little different

regards,

mex

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236960,236975#msg-236975

2013/3/6 onel0ve [email protected]:

I just need to convert this to nginx rules .

I guess, the thing is, that you shall learn, how this can be achieved.
So you can do it on your own the next time.
In case you’ve tried it yet, it may be helpful to show your attempts.
Look, it seems that you want others to do your job. As far as I can
tell many people will refuse to do so.

So show some love and see what comes back :wink:

Regards,

André

On 6 March 2013 12:34, Andre J. [email protected]
wrote:

2013/3/6 onel0ve [email protected]:

I just need to convert this to nginx rules .

I guess, the thing is, that you shall learn, how this can be achieved.
So you can do it on your own the next time.
In case you’ve tried it yet, it may be helpful to show your attempts.
Look, it seems that you want others to do your job. As far as I can
tell many people will refuse to do so.

So show some love and see what comes back :wink:

+1. Show your working, show where you got stuck or what doesn’t work,
and you’ll find people are much more eager to help you :slight_smile:

Jonathan

Jonathan M. // Oxford, London, UK
http://www.jpluscplusm.com/contact.html

ok
CAn you just tell how to exclude a directory from nginx rules ? . I want
to
disable mod rewrite for one sub folder .

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236960,237083#msg-237083

I just need to convert this to nginx rules .

To ignore htaccess - enlist here

RewriteCond $1
!^(index.php|ftpservice|demo|ftpdb|MDF|phpsysinfo|admin|templates|links|
api|forum|articles|imageGallery|language|includes|ajax|resources|fonts|images|parse|directory|
uploads|system|rss.php|robots.txt|sitemap.php|Sitemap.xml|sitemap.xml|sitemap2.xml|urllist.txt)

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236960,236980#msg-236980