Best practice for URL rewriting with php parameter

Mik J mikydevel at
Wed Nov 11 13:14:31 UTC 2015

I have checked many ways to implement what I want (including if is evil) and I've been able to reach what I wanted to do (something simple)
I want that a user who be redirected in the background tonginx/index.php?x=informationSo that my index.php page is dymanic
I did like this in my virtual host configurationlocation /information { try_files information /index.php?x=information; }
I would like to know if:a) This is the best practice to do what I would like to do ?b) If "location /information" is an exact match only. Apparently no because also matches
Any other advices are appreciated.
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list