Add the following code in .htaccess file to run php files without .php extension.



AddHandler server-parsed .php

SetHandler application/x-httpd-php

AddHandler application/x-httpd-php .php

OR


RewriteEngine On
RewriteRule ^[^.]+$ - [T=application/x-httpd-php,L]