I have a PHP site. I want to remove PHP extension from a particular page. below is my .htaccess code.Here test is my PHP file name. Please help me out what I am doing wrong here
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(test)/?$ /$1.php [L,NC]