Hide php file extensions

i am trying to setup easyengine to serve files without the php file extension (not using wordpress)

i have tried to use the standard way in nginx to “rewrite” the address but can not get nginx to load after saving changes. any tips?

What error message does nginx give? Which file(s) are you editing? (this thread may be relevant here)

(You can use sudo nginx -t to test config changes without applying them)