Hi I want to change my website so that it has extensionless URLs eg example.com/here instead of example.com/here.php

I have a .htaccess now allowing this, however all the links throughout my site still point to the original pages with .php on the end, I would go through and change them but my site is so vast and extensive it wouldn't be worth the trouble.

Can anyone recommend me any way to solve this? Is there any way of redirecting any requests to .php to just the file name?

Many thanks