0

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]

This works when i am typing in the url like www.anything.com/home, but when i click one of the link of the webpage i created, it shows the .php extension. Please Help!!!

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by md.farhad
0

Is the link ending in the .php extension? if so then there is your issue. Change all links to the name without the extension.

0

Yes, page links are look like <a href="home.php">Home</a>. When i click on the link then it shows home.php. When i remove (.php) extension from the attribute value then it shows HTTP Error 404.

0

thank you so much for your reply... i dont know, but today its working fine... when i remove the extension from the link... & try again... thnx for suggesting me...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.