No. The rel="canonical" tag is a band-aid solution for broken sites. The 301 redirect coupled with correct internal linking still remains the best option.
There are also a lot of sites that designate the wrong URL, from the available selection, as the canonical URL. In general link to the 'shortest' of the URLs.
I guess I'll have to brush up on it again.
You may find this concurrent thread in the Apache Server forum to be useful: Which canonical fix is correct? [webmasterworld.com]
I also agree that the canonical link is a band-aid solution.
However, from what I've seen, it does seem to work. On sites that don't do a proper server-side fix but do install a correctly implemented canonical tag, I have yet to see a split PR, where one URL is different than the other.
Of course, that is toolbar PR which is not a totally trustworthy thing ;) So the server-side fix is the recommended approach, not only by people in this thread but even by Matt Cutts.
Always great to recognize not-a-few names that I know and trust.
as always, Thanks!
I am wondering why hasn't solutions to this become a standard feature by webhosts ?
Web hosts have become a kind of mass commodity and many of them lag well behind in understanding technical SEO issues. Some still don't allow 301 redirects of any kind on their shared hosting!
|I am wondering why hasn't solutions to this become a standard feature by webhosts ? |
It is becoming more and more of a standard solution in new out-of-the-box CMS type software from what I see, and rightly so.
I use the tag on every page in paginated series where the series represent duplication of the same topic, product or service in both ecommerce and info websites. Works like a charm - especially at preventing issues at the onset.
I am concerned by one aspect of the rel="canonical" tag.
Take a site with these alternative URLs which all return the same content (apart from small differences in the "breadcrumb" and "next page" links).
For a site where the rel="canonical" tag points to
www.example.com/index.php?type=page&[b]cat=18[/b]&product=345 there seems to be major spidering and indexing issues.
I am absolutely convinced that the canonical URL should be
www.example.com/index.php?type=page&product=345 with the
&cat= parameter omitted.
I have seen over and over again that Google usually prefers to list the shorter URL where one is available (though internal linking can also influence the longer URL being listed):
and believe this to also be just such one of those cases.
Thanks for the answers. If i remember right the reason htaccess isnt an option for sites on shared hosting is a security issue with allowing mod rewrite or rewriteengine. Would've thought by now someone would have coded a way to secure them. I suppose eventually more webhosts will be forced to provide solutions just to stay competitve.
This "security issue" is a red herring. It is the server config itself that is insecure, not .htaccess per se.
A webmaster *can* make a few mistakes with .htaccess that open security holes, but the same can be said for PHP or any other scripting language -- and even more so with unsanitized database queries...
The truth is that hosting companies "don't like" allowing .htaccess (and especially mod_rewrite) because allowing it raises their support costs -- They actually have to hire a few people with real server training to support it.
|I have seen over and over again that Google usually prefers to list the shorter URL where one is available |
I think you're right - as a general rule of thumb. I would probably set the shortest URL as the canonical, too.
|The truth is that hosting companies "don't like" allowing .htaccess (and especially mod_rewrite) because allowing it raises their support costs -- They actually have to hire a few people with real server training to support it. |
Thanks for the clarification JD !
Has anyone written or read a definitive article about how this works, how to diagnose it, what to do, what not to do, etc?
I know this is part secret handshake code of the fraternity of smarter webmasters - but hey, maybe it is time to push the envelope a bit?
I've pieced it together here over the years to get a working knowledge but it is piecemeal, and it would be nice to have some sort of reference document to go back to in order to make sure I've got it all.
Fortunately, although I know not what, something happened in the last couple of years so that when I mention "canonical", coworkers don't treat me as if I have 2 heads.
so my specific question is this - has this topic 'crossed over' beyond the google tag?
Hopefully if so, it will include a few recognizable names.