I want to remove .php from address bar. Actually my address bar is located this site http://localhost/product/login.php. But i want show that address bar look like this format http://localhost/product/login without the ".php" extention.
1 Answer
Please try this in .htaccess file:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] 2 Comments
Muralitharan
From where can i get the .htaccess file?
Kashish Agarwal
Read this link link
.htaccessfile link