by patio11 · 11y ago · 0 comments
<link rel="canonical" href="http://blog.mavnn.co.uk/type-providers-from-the-ground-up">
for a URL which cannot possibly return an HTTP 200. (It 301s to a URL with a / on the end.)
This combination could cause Google to conclude that you have no page which requires inclusion in their main index.
Thanks, patio11
domain.com/this-page-here
can serve entirely different content from domain.com/this-page-here/
depending on the server (and application) configuration.Pretty much the only way to 100% reliably deduplicate URLs is to look at their content, and somehow magically compare content that can change from page load to page load -- which is a whole other problem.
Another example is whether foo.com/bar is the same as foo.com/BAR. Usually yes, but it's entirely possible that they will serve different content.
Also, which URL parameters should be disregarded, and which should be considered important? A crawler must do quite a bit of nontrivial page introspection in order to figure out the answer to that all on its own.
Often pages that are essentially the same will be a bit different. Timestamps and time-sensitive data (eg. listings on a marketplace) will trip you up, here.
Also, you might ask why Google won't ignore the canonical URL if it's an invalid URL.. well, that's what you get with the canonical URL - you're explicitly telling Google this is the "real" url of the web page. You can't have it both ways, and then complain Google is ignoring your canonical tag.