Hello,<div><br></div><div>I'm trying to convert from apache to nginx rewrite. </div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>ErrorDocument 403 /index.php?do=/public/error/403/</div>
</div><div><div>ErrorDocument 404 /index.php?do=/public/error/404/</div></div><div><div><br></div></div><div><div>RewriteEngine On</div></div><div><div><br></div></div><div><div>RewriteCond %{REQUEST_URI} !^/file/.*</div>
</div><div><div>RewriteCond %{REQUEST_URI} !^/install/.*</div></div><div><div>RewriteCond %{REQUEST_URI} !^/design/.*</div></div><div><div>RewriteCond %{REQUEST_URI} !^/plugins/.*</div></div><div><div>RewriteRule ^index.php(/.*)$ /index.php?do=$1 [L]</div>
</div><div><div><br></div></div><div><div>RewriteCond %{REQUEST_URI} !^/file/.*</div></div><div><div>RewriteCond %{REQUEST_URI} !^/install/.*</div></div><div><div>RewriteCond %{REQUEST_URI} !^/design/.*</div></div><div><div>
RewriteCond %{REQUEST_URI} !^/plugins/.*</div></div><div><div>RewriteCond %{REQUEST_URI} !^/index.php</div></div><div><div>RewriteCond %{REQUEST_URI} !^/robots.txt</div></div><div><div>RewriteCond %{REQUEST_URI} !^/favicon.ico</div>
</div><div><div>RewriteRule ^(.*)$ /index.php?do=/$1 [L]</div></div></blockquote><div><br></div><div>This is my try :D</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><div>error_page 403 /index.php?do=/public/error/403/;</div></div><div><div>error_page 404 /index.php?do=/public/error/404/;</div></div><div><div><br></div></div><div><div>rewrite ^index.php(/.*)$ /index.php?do=$1 last;</div>
</div><div><div>rewrite ^(.*)$ /index.php?do=/$1 last;</div></div><div><br></div></blockquote>I have difficulty on REQUEST_URI with following paths.<div><br></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">any help is appreciated.</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Thank you.</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">Tseveen.</span></div>