Forum Moderators: Robert Charlton & goodroi
- mydomain/photos/productname --> mydomain/main/productname#photos
- mydomain/comments/productname --> mydomain/main/productname#comments User-Agent: *
Disallow: /photos/
Disallow: /comments/ Have you verified that the 301 is functioning as expected?
# curl -iL https://mydomain/photos/productname HTTP/1.1 301 Moved Permanently
Date: Mon, 07 Jun 2021 13:46:12 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Location: https://mydomain/main/productname#photos Have your sitemaps excluded the old URLs?
Do your pages include a canonical meta tag?
I do not understand very well this point. The canonical metatag is included in the new URLs, but the old URL shows just the 301 contents to redirect to the new URL.I was asking whether (if) there were canonical meta tags on the old pages (URLs) if they had been updated to show the new canonical URL. If the old pages had a canonical tag, and if those pages no longer contain any tag, then no, the meta tag was not updated to the new URL.
I assumed that, after so many months, Google would have already decided "hey, these URLs no longer exist and the information is in the new ones".Google never forgets an URL. But they do slow down eventually.
Link: <https://mydomain/main/productname#photos>; rel="canonical"
HTTP/1.1 301 Moved Permanently
Location: https://mydomain/main/productname#photos