htaccess : remove .php extension to permalink

RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L]

or

---------------------------------------------------

httpd.conf

Options +Multiviews

<Directory />

    AllowOverride All

    Options None

    #Options +FollowSymLinks -Indexes

    # Apache 2.4

    #Require all granted

    Require all denied

    # Apache 2.2

    #Order allow,deny

    #Allow from all

</Directory>

<Directory "/home/*/public_html">

    AllowOverride All

    Options +MultiViews +FollowSymLinks -Indexes +IncludesNoExec

    #AllowOverride FileInfo AuthConfig Limit Indexes

    #Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

    Require method GET POST OPTIONS

</Directory>

---------------------------------------------------

conf.d/userdir.conf

#<Directory "/home/*/public_html">

#    AllowOverride FileInfo AuthConfig Limit Indexes

#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

#    Require method GET POST OPTIONS

#</Directory>

---------------------------------------------------

conf.d/php.conf

#

# Allow php to handle Multiviews

#

AddType text/html .php