Hi,<div><br></div><div>I'd like to ask for some help to translate these Apache Rules to Nginx:</div><div><br></div><div><div>RewriteCond %{SCRIPT_FILENAME} !-f</div><div>RewriteCond %{SCRIPT_FILENAME} !-d</div><div>RewriteCond %{QUERY_STRING} (.*)</div>
<div>RewriteRule ^(.*)$ index.php?url=$1&%1</div><div><br></div><div><br></div><div>These rules redirects all the requests to index.php. For example:</div><div><br></div><div><a href="http://www.example.com/users/edit/id/1?profile=1">http://www.example.com/users/edit/id/1?profile=1</a></div>
<div><br></div><div>Redirects to:</div><div><br></div><div><a href="http://www.example.com/index.php?url=users/edit/id/1&profile=1">http://www.example.com/index.php?url=users/edit/id/1&profile=1</a></div><div><br>
</div><div><div>To be honest, I know what these rules do, but I don't know exactly how they work, so any help will be very appreciated.</div></div><div><br></div><div><br></div><div>Thanks in advance,</div>-- <br>Nielson Rolim<br>
<a href="mailto:nielson.rolim@gmail.com">nielson.rolim@gmail.com</a><br>
</div>