When checking one of my domain names on Google I found some strange links and my host say it is due to this rewrite rule:
RewriteRule (.*)\.htm$ display.php?photo=$1
On my old host they had a different file structure for my sites and there was no problem - from memory all the sites were in different directories and each had a .htaccess file. This host has one site in public_html containing one site that needs the redirect and the other two sites in directories within this site.
From what I have found out (.*) means redirect all but I can not find how to only redirect one domain name. I have tried changing it to:
RewriteRule ^https://website.com\.htm$ display.php?photo=$1
But all I get is a 404 error but the URL is looking correct
Please can you tell me where I am going wrong.