Hi there,
Can someone please translate the following .htaccess to NGINX, it seems that whatever I try doesn't work as in Apache, I searched the forums and found many posts but non of the posters had the same set of rules I have here, I tried to mix different rules from different answers hoping that it may work but it didn't, anyhow here is the original .htaccess file and any help is greatly appreciated, once we got this figured out we will migrate many of our clients to NGINX :)
[code]
ErrorDocument 403 /index.php?do=/public/error/403/
ErrorDocument 404 /index.php?do=/public/error/404/
RewriteEngine On
RewriteRule ^box/items/(.*) /shelf/box/items/$1 [L]
RewriteCond %{REQUEST_URI} !^/images/.*
RewriteCond %{REQUEST_URI} !^/music/.*
RewriteCond %{REQUEST_URI} !^/video/.*
RewriteCond %{REQUEST_URI} !^/files/.*
RewriteCond %{REQUEST_URI} !^/data/.*
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteCond %{REQUEST_URI} !^/index.php
RewriteRule ^index.php(/.*)$ /index.php?do=$1 [L]
RewriteCond %{REQUEST_URI} !^/images/.*
RewriteCond %{REQUEST_URI} !^/music/.*
RewriteCond %{REQUEST_URI} !^/video/.*
RewriteCond %{REQUEST_URI} !^/files/.*
RewriteCond %{REQUEST_URI} !^/data/.*
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteCond %{REQUEST_URI} !^/index.php
RewriteRule ^(.*)$ /index.php?do=/$1 [L]
[/code]
Thanks in advance,