I am new in php web development, I am trying this codes to hide .php extension from My website URL, through .htaccess file but it can't work and showing "Server Error"
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
</IfModule>
Please help me on this issue.