The syntax of the meta tag looks like this:
<link href="http://www.example.com/product.php?item=swedish-fish" rel="canonical"></link>
The tag tells Google to only index this page if it's being accessed through the same URL specified in the "href" attribute.
This meta tag creates a lot of confusion with webmasters. Here are some tips to help you determine if you need this tag or not:
- If your website uses a large number of URL parameter that are dynamically generated, you may need to use canonical URL tags
- If your website uses multiple domain names, inconsistent casing in URLs, or has a lot of URL rewriting, you may need to use canonical URL tags
- If in doubt, your website probably doesn't need the canonical URL tag
One last note: If you are using canonical URLs on your website, Inspyder Sitemap Creator is the only sitemap generator that fully supports this tag. It will only include your canonical URLs (if present) in your sitemap. Sitemap Creator also logs when it encounters canonical URLs making it easy to troubleshoot crawling issues if you've made a mistake.
0 comments:
Post a Comment