Best practice for URL rewriting with php parameter
Mik J
mikydevel at yahoo.fr
Wed Nov 11 13:14:31 UTC 2015
Hello,
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 accessesnginx.org/informationwill 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 nginx.org/informationxxxsomethingxxxweird also matches
Any other advices are appreciated.
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20151111/f549a707/attachment.html>
More information about the nginx
mailing list