I have a site built in .php , but we converted it to .html using "mod rewrite" . the mode rewrite code used in .htaccess is
RewriteEngine on RewriteRule ^(.*)\.html$ $1.php
Now the problem is that my site is displayed in both .php and .html .
for example: www.mydomain.com/index.html , as well as www.mydomain.com/index.php .
according to my knowledge, this is not good for SEO purposes, and it can also get into duplicate content in search engines.
therefore I want to save only .html [not .php] url in search engines and for users.
how to do it?
source share