I have a new website that has a different product URL from the old website.
URL Old Website
https://www.example.com/product/MA-593838554.html
https://www.example.com/product/MR-559927541.html
- etc
Old indexed urls with .html
extension still appears in google search. How to block all urls whose extension is .html
in robot.txt
?
Can I write it like this Disallow: /product/*.html$
?
$
and*
as regex in robot.txt, ideally something like what you suggested would work