Using a fairly bog-standard try_files → php/fastcgi config here with
nginx
0.8.22. Looks very much like this:
index index.php;
location / {
try_files $uri $uri/ /index.php;
}
location ~ .php$ {
include fastcgi_params;
fastcgi_pass fcgi_php; # defined in an upstream
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
Looking at the debug log, I noticed that at one point, nginx seems to be
doing an internal redirect to “/index.php?” → if that question mark
means
the same thing as it does in a configured rewrite, try_files is
stripping
the query string!
I suspect that /?test=test is working because $uri/ is tested with the
index, thus becoming /index.php?test=test.