I want to rewrite the url in nginx so that the .php extension can be omitted.
.php
This is what I have, but this isn\'t working for me. Anyone any idea how to do
Something like this should be what you are looking for.
location ^/(.*)$ { rewrite ^(.*)$ /$1.php; }