Nginx Rewrite to remove php extensions from URI How to "finally" remove all the php extensions from your URL/URI using Nginx rewrites in Ubuntu (LEMP / PHP-FPM).