Коллеги, совсем ничего не понимаю в rewrite внутри апача, помогите пожалуйста перевести .htaccess в nginx.RewriteEngine On
# Installation directory
RewriteBase /
RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}]
RewriteCond %{THE_REQUEST} ^[^\s]+\s+[^?]*?\?
RewriteCond %{QUERY_STRING} =""
RewriteRule .? %{REQUEST_URI}? [R=301,L]
# Path to views folder
RewriteRule ^sitemap.xml$ /?haction=content.sitemap [L,QSA]
RewriteRule ^robots.txt$ /?haction=content.robots [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !/(.*)\.[^\/]+$
RewriteRule (.+) $1/ [R=301,L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /index.php