Should I use canonical tag in these cases?
-
Should I use canonical tag in these cases?
- On the page itself (with the tag pointing to itself)
- On pages that doesn't have duplicate versions
-
Good question, one that I don't feel like gets addressed enough.
Yes, you should always include self-referring canonical tags. There's a few reasons for this, but primary it helps one version of your URLs get indexed. Here's a handful of cases where they're helpful:
- Some CMSs create URLs that are case-sensitive - i.e. URLs will resolve at /Some-page, /some-page, and /Some-Page
- HTTP vs. HTTPS - if you've gone secure, self-referring canonical tags can help search engines learn your new structure and drop HTTP URLs from the index quicker, or at least prevent both secure and non-secure from being indexed
- Absolute/Relative links - some development teams prefer to use relative URLs in links when working in Dev and Test environments, this is helpful for preventing unwanted Dev/Test URLs from getting indexed, but isn't ideal for SEO. This is where self-referring canonicals come in.
- WWW vs. Non-WWW - another safeguard to prevent indexing of both versions, even with redirects in place, it doesn't hurt to have a fall back
- URLs with Parameters - If your site appends parameters to URLs for any reason, self-referring canonicals will prevent indexation of /this-page?q=123
There's probably other reasons to add to this list, but these should be compelling enough to go ahead and add them.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Added a canonical ref tag and SERPs tanked, should we change it back?
My client's CMS uses an internal linking structure that includes index.php at the end of the URLs. The site also works using SEO-friendly URLs without index.php, so the SEO tool identified a duplicate content issue. Their marketing team thought the pages with index.php would have better link equity and rank higher, so they added a canonical ref tag, making the index.php version of the pages the canonical page. As a result, the site dropped in the rankings by a LOT and has not recovered in the last 3-months. It appears that Google had automatically selected the SEO-friendly URLs as the canonical page, and by switching, it re-indexed the entire site. The question we have is, should they change it back? Or will this cause the site to be reindexed again, resulting in an even lower ranking?
Technical SEO | | TienB240 -
Robots and Canonicals on Moz
We noticed that Moz does not use a robots "index" or "follow" tags on the entire site, is this best practice? Also, for pagination we noticed that the rel = next/prev is not on the actual "button" rather in the header Is this best practice? Does it make a difference if it's added to the header rather than the actual next/previous buttons within the body?
Technical SEO | | PMPLawMarketing0 -
Duplicate Title Tag
We are getting a Duplicate Title Tag error on our pages but we have different titles and the differences are being seen by Google. We are using the code <%@ Page Title="School Lunch Software Pricing || EZ School Apps"%> Any ideas?
Technical SEO | | EZParentCenter0 -
Does using cufon for H-tags etc hurt SEO?
Does the use of cufon for H-tags et al affect SEO/how Google views your website?
Technical SEO | | Alligator0 -
Am I using 301 correctly?
Hello, I have a 'Free download' type site for free graphics for designers. To prevent hot linking we authenticate the downloads and use a 301 redirect. So for example: The download URL looks like this if someone is clicking on the download button: http://www.website.com**/resources/243-name-of-the-file/download/dc37** and then we 301 that URL back to: http://www.website.com**/category-name/243-name-of-the-file** Is a 301 the correct way to do that?
Technical SEO | | shawn810 -
Am I Doing this Canonical Right?
Hi,I admit to new to the Mod Rewrite.Here is my mod rewrite in my .htaccess# Begin non-www page protection # <ifmodule mod_rewrite.c="">RewriteEngine On
Technical SEO | | Force7
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]</ifmodule> # End non-www page protection #If I have my home page set toI really want the canonical to be www.domain.com no trailing slashDid I create a confllict, and if so, how should I change it?0 -
Rel=canonical + no index
We have been doing an a/b test of our hp and although we placed a rel=canonical tag on the testing page it is still being indexed. In fact at one point google even had it showing as a sitelink . We have this problem through out our website. My question is: What is the best practice for duplicate pages? 1. put only a rel= canonical pointing to the "wanted original page" 2. put a rel= canonical (pointing to the wanted original page) and a no index on the duplicate version Has anyone seen any detrimental effect doing # 2? Thanks
Technical SEO | | Morris770 -
Is using a Href in Div OK?
Hi, I was just wondering what your thoughts are on using a Href in a Div, which contains anchor text. We currently use the Href on the div, as opposed to just the anchor text as I want the whole div to be clickable as opposed to just the anchor text. So currently I have: Keword 1
Technical SEO | | James77
Keyword 2 Is this perfectly fine to do it like this as opposed to using <a tags="" ???<br="">I suppose there are various alternatives - if you must use the</a><a tag="" like:<="" p=""></a> <a tag="" like:<="" p=""></a> Keword 1
Keyword 2 However I would assume a search engine is smart enought to know its the same thing??? Thanks0