I'm using this in my top level .htaccess to remove the PHP file type extension on my *.php files.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
But I have discovered it also prevents my browser from calling the index.php page in my sub-directories. I need to include /index.php explicitly in the URL.
Is there a better way to remove the PHP file type extension on my *.php files?