I was curious to know if it was possible to somehow configure nginx so that it will parse url arguments without specifying .php
at the end of the filename before the arguments are sent.
For example, let's say I have an account module which processes which aspect of the account to load, based on the argument sent. If the argument is ?sk='login'
, it will load the login module. If it is ?sk='register'
, it will load the registration module - and so on and so forth.
The problem is that when I type http://host/account?sk='login'
, I do not get anything via $_GET
when I try to print the values within the array. The thing is that the clean URL does load the file which is supposed to manage the $_GET
arguments, except it will not actually process $_GET
unless I specify .php
at the end of the filename.
I'm guessing there's an nginx or php-fpm configuration somehow which allows this.
Is this possible?