SEOmoz Daily SEO Blog |
301 Redirect or Rel=Canonical - Which One Should You Use? Posted: 14 Nov 2010 12:13 PM PST Posted by Paddy_Moogan There has been quite a lot of discussion lately about the use of rel=canonical and we've certainly seen a decent amount of Q&A from SEOmoz members on the subject. Dr. Pete of course blogged about his rel-canonical experiment which had somewhat interesting results and Lindsay wrote a great guide to rel=canonical. Additionally, there seem to be a few common problems that are along the following lines -
I'm going to attempt to answer these questions here. The 301 Redirect - When and How to Use itA 301 redirect is designed to help users and search engines find pieces of content that have moved to a new URL. Adding a 301 redirect means that the content of the page has permanently moved somewhere else. Source: http://www.ragepank.com/images/301-redirect.jpg What it does for usersUsers will probably never notice that the URL redirects to a new one unless they spot the change in URL in their browser. Even if they do spot it, as long as the content is still what they were originally looking for, they're unlikely to be affected. So in terms of keeping visitors happy, 301 redirects are fine as long as you are redirecting to a URL which doesn't confuse them. What it does for the search enginesIn theory, if a search engine finds a URL with a 301 redirect on it, they will follow the redirect to the new URL then de-index the old URL. They should also pass across any existing link juice to the new URL, although they probably will not pass 100% of the link juice or the anchor text. Google have said that a 301 can pass anchor text, but they don't guarantee it. Where is can go wrongNot knowing your 301s from your 302s Redirecting all pages in one go to a single URL When you should use a 301Moving Sites
Multiple Versions of the Homepage Quick caveat - the only exception would be if these multiple versions of the homepage served a unique purpose, such as being shown to users who are logged in or have cookies dropped. In this case, you'd be better to use rel=canonical instead of a 301. The Rel=Canonical Tag - When and How to Use itThis is a relatively new tool for SEOs to use, it was first announced back in February 2009. Wow was it really that long ago?! As I mentioned above, we get a lot of Q&A around the canonical tag and I can see why. We've had some horror stories of people putting the canonical tag on all their pages pointing to their homepage (like Dr Pete did) and Google aggressively took notice of it and de-indexed most of the site. This is surprising as Google say that they may take notice of the tag but do not promise. However experience has shown that they take notice of it most of the time - sometimes despite pages not being duplicates which was the whole point of the tag! When to use Rel=CanonicalWhere 301s may not be possible Rand illustrated this quite well in this diagram from his very first post on rel=canonical:
When dynamic URLs are generated on the fly By this I mean URLs which tend to be database driven and can vary depending on how the user navigates through the site. The classic example is session IDs which are different every time for every user, so it isn't practical to add a 301 to each of these. Another example could be if you add tracking code to the end of URLs to measure paths to certain URLs or clicks on certain links, such as: www.example.com/widgets/red?source=footer-nav When Not to Use Rel=CanonicalOn New Websites Having said that, John Mu has made a point of not ruling it out totally. He just advises caution, which should be the case for any implementation of the canonical tag really - except if you're Dr Pete! Across your entire site to one page Just a quick note on this one as this is one way which using the rel=canonical tag can hurt you. As I've mentioned above, Dr Pete did this as an experiment and killed most of his site. He set the rel=canonical tag across his entire site pointing back to his homepage and Google de-indexed a large chunk of his website as a result. The following snapshot from Google Analytics pretty much sums up the effect: Conclusion In summary, you should use caution when using 301s or the canonical tag. These type of changes have the potential to go wrong if you don't do them right and can hurt your website. If you're not 100% confident, do some testing on a small set of URLs first and see what happens. If everything looks ok, roll out the changes slowly across the rest of the site. In terms of choosing the best method, its best to bear in mind what you want for the users and what you want them to still see. Then think about the search engines and what content you want them to index and pass authority and link juice to. |
You are subscribed to email updates from SEOmoz Daily SEO Blog To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
Niciun comentariu:
Trimiteți un comentariu