You can use the H flag in apach mode to force all files to be processed without the extension that is processed by the php handler:
try the following in htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule !\. - [H=application/x-httpd-php]
on some servers you need to change httpd-php to httpd-php5:
RewriteRule !\. - [H=application/x-httpd-php5]
source
share