-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Redirect .php extension to WordPress if not exists #204
Comments
I had thought this wasn't working correctly, but seems that it is working fine actually:
Ref: https://github.com/littlebizzy/slickstack/blob/master/modules/nginx/sites/production.txt So I'm closing this for now. |
It's still not working consistently. I discovered it's a conflict with FastCGI Cache rules, this snippet:
...under the |
I see GridPane skips FastCGI cache on .php files: https://gridpane.com/kb/gridpane-default-cache-exclusions/ Thus, their similar redirect of non-existent .php files probably works more consistently: https://gridpane.com/kb/redirects-with-non-existent-php-files/ |
It's a conflict between the https://stackoverflow.com/questions/39548301/if-conditions-break-try-files-in-nginx-configuration https://serverfault.com/questions/579613/nginx-config-if-and-try-files |
We should consider doing this, in case of websites that have a history of using various CMS and such, to avoid tons of 404 errors which are bad for SEO and usability.
Some reading:
https://stackoverflow.com/questions/38911354/nginx-php-file-extension-does-not-work-with-try-files
Side note, we should also organize our server blocks better per answers here.
The text was updated successfully, but these errors were encountered: