Thank you Edho!<br><br><div class="gmail_quote">On Sun, Nov 18, 2012 at 9:00 AM, Edho Arief <span dir="ltr"><<a href="mailto:edho@myconan.net" target="_blank">edho@myconan.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sun, Nov 18, 2012 at 6:20 PM, Nielson Rolim <<a href="mailto:nielson.rolim@gmail.com">nielson.rolim@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I'd like to ask for some help to translate these Apache Rules to Nginx:<br>
><br>
> RewriteCond %{SCRIPT_FILENAME} !-f<br>
> RewriteCond %{SCRIPT_FILENAME} !-d<br>
> RewriteCond %{QUERY_STRING} (.*)<br>
> RewriteRule ^(.*)$ index.php?url=$1&%1<br>
><br>
><br>
> These rules redirects all the requests to index.php. For example:<br>
><br>
> <a href="http://www.example.com/users/edit/id/1?profile=1" target="_blank">http://www.example.com/users/edit/id/1?profile=1</a><br>
><br>
> Redirects to:<br>
><br>
> <a href="http://www.example.com/index.php?url=users/edit/id/1&profile=1" target="_blank">http://www.example.com/index.php?url=users/edit/id/1&profile=1</a><br>
><br>
> To be honest, I know what these rules do, but I don't know exactly how they<br>
> work, so any help will be very appreciated.<br>
><br>
><br>
<br>
</div>try_files $uri $uri/ /index.php?url=$uri&$args;<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Nielson Rolim<br><a href="mailto:nielson.rolim@gmail.com">nielson.rolim@gmail.com</a><br>