0

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]
Peter O.
  • 32,158
  • 14
  • 82
  • 96
Sibasankar Bhoi
  • 589
  • 4
  • 14

0 Answers0