I am not sure weather this is appropriate place to raise this question or not.
I have a website www.esparkinfo.com, It is in core PHP, I want to hide php extension and display html extension to my visitors and I did it by changing in .htaccess file.
Below is the .htaccess code I used to access php file with .html extension
RewriteRule ^(.*)\.html$ $1.php
Now the problem is, I can access same file with both extensions like /services.php file access from /services.php and /services.html
I want to set redirection to .html if visitor type .php extension but I am failed to do so, I have appplied many logic but it gives me "500 internal server error".
I really apppriciate your suggestions and help.
I am So Sorry Mr. Nitesh for that I also got same problem in my website cheap web design company, It is also core PHP, And I want to show html extension to my visitors.
I also search the real logic for my website.