How to remove php extension from url


HI, this is my first time here and as i am also new to nginx i created a php website using easyengine that is working fine but i want to remove the .php | .html extensions from the url i tried solutions available on the internet but nothing is working plz guide me …