This is my .htaccess file:
RewriteEngine On
RewriteRule ^(.*)/$ /$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
When the user goes to http://local/home, it works fine, but if user goes to http://local/home.php, the .php stays there, it doesn't redirect to the page without the .php, so don't mark this as duplicate as I have researched it.