Hi, i have this rewrite in my application:
/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule (.*\.(png|gif|jpg|jpeg|js|css|swf))$ webroot/img_handler.php?arg=$1 [L]
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
# test 5
# disable directory browsing -IMPORTANT, do NOT remove.
Options -Indexes
# protect the htaccess file
<files .htaccess>
order allow,deny
deny from all
</files>
# disable the server signature
ServerSignature Off
# protect php.ini
<files *.ini>
order allow,deny
deny from all
</files>
/webroot/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
how i can convert o nginx rewrite?
Thanks