Hi everyone this is my .htaccess file code
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
it works perfectly but i was wondering if can i force hide the .php extension, so even if i went to www.example.com/foo.php i get redirected to www.example.com/foo
is there any way i can do that ??