Thank you Edho! On Sun, Nov 18, 2012 at 9:00 AM, Edho Arief <edho@myconan.net> wrote: > On Sun, Nov 18, 2012 at 6:20 PM, Nielson Rolim <nielson.rolim@gmail.com> > wrote: > > Hi, > > > > I'd like to ask for some help to translate these Apache Rules to Nginx: > > > > RewriteCond %{SCRIPT_FILENAME} !-f > > RewriteCond %{SCRIPT_FILENAME} !-d >by nielsonrolim - Nginx Mailing List - English
Hi, 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: http://www.example.com/users/edit/id/1?profile=1 Redirects to: http://www.example.com/index.php?url=usersby nielsonrolim - Nginx Mailing List - English