nanobox-io/nanobox-engine-php

Add URL Rewriting To Nginx Config

danhunsaker opened this issue · 2 comments

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.

I believe this is what the actual config would look like:

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

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.