How would I go about redirecting urls ending in .php to a simple /

I’m moving an old site to WP and EE. All this site’s pages end in .php. How would I go about redirecting /example.php to /example/?

The WP redirection plugin is just giving me 404’s for the URLs I’m trying to redirect so I thought there may be some rule in the EE configs that blocks access to php files.