Anybody alredy need to translate the htaccess to nginx rules

This is my htaccess… please, anybody helpe me…

Options +FollowSymLinks
RewriteEngine On

Get rid of index.php

RewriteCond %{REQUEST_URI} /index.php
RewriteRule (.*) index.php?rewrite=2 [L,QSA]

Rewrite all directory-looking urls

RewriteCond %{REQUEST_URI} /$
RewriteRule (.*) index.php?rewrite=1 [L,QSA]

If the file doesn’t exist, rewrite to index

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !.[\w]+$
RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA]

<IfModule !mod_rewrite.c>

#Isn’t working quite properly
#RedirectMatch 302 ^(((?!index.php).)*?)/$ $1/index.php

sends requests /index.php/path/to/module/ to “index.php”

AcceptPathInfo On

@todo This may not be effective in some cases

FileETag Size