What about using the mod_rewrite method:
PHP Code:
Add this to the .htaccess file on the root of your server:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]
That should just strip out the php extension of evry file.
- Vince