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=users/edit/id...
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,
on 2012-11-18 12:20
on 2012-11-18 13:01
On Sun, Nov 18, 2012 at 6:20 PM, Nielson Rolim <nielson.rolim@gmail.com> wrote: > These rules redirects all the requests to index.php. For example: > try_files $uri $uri/ /index.php?url=$uri&$args;
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.