0

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.

2
  • You can use .htaccess file link Commented Feb 22, 2017 at 12:50
  • i don't know about .htaccess file. can you please explain that? Commented Feb 22, 2017 at 12:52

1 Answer 1

3

Please try this in .htaccess file:

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] 
Sign up to request clarification or add additional context in comments.

2 Comments

From where can i get the .htaccess file?
Read this link link

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.