Help do translate Apache Rewrite Rules

Nielson Rolim nielson.rolim at
Sun Nov 18 11:20:09 UTC 2012


I'd like to ask for some help to translate these Apache Rules to Nginx:

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{QUERY_STRING} (.*)
RewriteRule ^(.*)$ index.php?url=$1&%1

These rules redirects all the requests to index.php. For example:

Redirects to:

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.

Thanks in advance,
Nielson Rolim
nielson.rolim at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list