Add URL Rewriting To Nginx Config
danhunsaker opened this issue · 2 comments
danhunsaker commented
PHP apps almost always rewrite /path
to /index.php/path
, so we should add an option to enable this rewrite automatically in the Nginx config.
sanderson commented
I believe this is what the actual config would look like:
location / {
try_files $uri $uri/ /index.php?$query_string;
}
danhunsaker commented
Some apps do still use the query string instead, yes. Either way, this is actually pending merge already in a way that the user can actually specify their own rewrites, so nearly able to close this one.