Welcome! Log In Create A New Profile

Advanced

Best practice for URL rewriting with php parameter

November 11, 2015 08:16AM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Best practice for URL rewriting with php parameter

miky November 11, 2015 08:16AM

Re: Best practice for URL rewriting with php parameter

Francis Daly November 11, 2015 08:56AM

Re: Best practice for URL rewriting with php parameter

miky November 11, 2015 09:32AM

Re: Best practice for URL rewriting with php parameter

Francis Daly November 11, 2015 10:48AM

Re: Best practice for URL rewriting with php parameter

miky November 11, 2015 01:56PM

Re: Best practice for URL rewriting with php parameter

Francis Daly November 11, 2015 02:40PM

Re: Best practice for URL rewriting with php parameter

miky November 12, 2015 06:06PM

Re: Best practice for URL rewriting with php parameter

Francis Daly November 15, 2015 07:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready