Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add URL Rewriting To Nginx Config #65

Open
danhunsaker opened this issue Dec 7, 2017 · 2 comments
Open

Add URL Rewriting To Nginx Config #65

danhunsaker opened this issue Dec 7, 2017 · 2 comments

Comments

@danhunsaker
Copy link
Contributor

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
Copy link
Contributor

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

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

@danhunsaker
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants