Broken canonical link errors
-
Hello,
Several tools I'm using are returning errors due to "broken canonical links". However, I'm not too sure why is that.
Eg.
Page URL: domain.com/page.html?xxxx
Canonical link URL: domain.com/page.html
Returns an error.Any idea why? Am I doing it wrong?
Thanks,
G -
Great, thanks for your note Paul, I will filter through as you suggest!
-
I would us a different
rel="canonical" only url for the canonical & kee the microdata link as just a link.
I agree it is probably Just the tool but from what I can see mixing microdata & the canonical is not the best way to go.
<link rel="canonical" href="http: example.com="" "=""></link rel="canonical" href="http:>
you want a free way to test up to 500 pages https://screamingfrog.co.uk/seo-spider/ like Paul said any tool can be wrong but it looks like you should not mix the canonical something the end Users can click on
tom
-
Your understanding of canonical tags is correct, GhillC.
If Tools are showing errors for those canonical tags you've listed, then the tools are wrong.
As long as the protocol and subdomain prefix (or not) exactly match and the only difference is the exclusion of the parameters (the "?" and the stuff after it) then the canonicals are correct.
Any tool's reports have to be filtered through your own understanding and knowledge. They often get things wrong. That's on eof the key differences between experienced SEOs and less-experienced. They kow when to question what an automated tool is telling them. So good on ya for questioning the results!
Paul
-
Thanks both.
Though I do believe that I get a good enough understanding of the canonical tag structure.
What I don't understand is why some SEO tools are returning an error with few of these tags.Here is the page URL:
https://www.domain.com/ae/products/shopby/product-type-accessories.html?___store=en_aeAnd here is the canonical tag that returns the error:
As per your comment, I want the URL without the query string to rank and the traffic associated to the URL above to benefit "accessories.html".
At first I thought it was due to "itemprop" which technically should not be combined with a rel attribute (source: https://stackoverflow.com/questions/31621308/itemprop-and-rel-attributes-on-same-element)
But since all the pages of the website I'm working on contains canonical tags with both elements and only a handful of them returns a canonical tag error, I guess it comes from something else. -
If you need anyone to back up what Roman said he's exactly right.
You need to add the canonical to your site so it is self-referencing I would not add it to any URLs that have parameters/query strings or any URL that you want to be in Google's index.
In your example you show the same page twice I added https:// just to make it a full URL for the example and please do that when you add the canonical's
With the rel canonical, you're telling Google that your parameter is not something you want to rank for
You want https://domain.com/page.html to rank
** not**
**Page URL: https://domain.com/page.html?xxxx **
So as Roman said you would add a rel canonical like this below. Please keep in mind when you add these you must add HTTP or HTTPS depending on what your site is up for as well as www. or non-www. & always use absolute URLs
For example, search crawlers might be able to reach your homepage in all of the following ways:
Cite: https://moz.com/learn/seo/canonicalization
More references
- https://support.google.com/webmasters/answer/139066?hl=en
- https://moz.com/blog/rel-canonical
- https://varvy.com/rel/canonical.html
I hope that helps,
Tom
-
A canonical tag (aka "rel canonical") is a way of telling search engines that a specific URL represents the master copy of a page. Using the canonical tag prevents problems caused by identical or "duplicate" content appearing on multiple URLs. Practically speaking, the canonical tag tells search engines which version of a URL you want to appear in search results.
So if you have a page such as
www.mywesbite.com you should have a canonical tag on that page like this one
on your headerSo you should check your source code to check if the URL is ok or it's missing
These are some links you should read
Hope this information will answer your question
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
-
Subdomain 403 error
Hi Everyone, A crawler from our SEO tool detects a 403 error from a link from our main domain to a a couple of subdomains. However, these subdomains are perfect accessibly. What could be the problem? Is this error caused by the server, the crawlbot or something else? I would love to hear your thoughts.
Technical SEO | | WeAreDigital_BE
Jens0 -
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 -
If a URL canonically points to another link, is that URL indexed?
Hi, I have two URL both talking about keyword phrase 'counting aggregated cells' The first URL has canonical link pointing to the second URL, but if one searches for 'counting aggregated cells' both URLs are shown in the results. The first URL is the pdf, and i need only second URL (the landing page) to be shown in the search results. The canonical links should tell Google which URL to index, i don't understand why both URLs are present in search results? Is 'noindex' for the first URL only solution? I am using Yoast SEO for my website. Thank you for the answers.
Technical SEO | | Chemometec0 -
Site Link Issues
For several search terms I get site links for the page http://www.waikoloavacationrentals.com/kolea-rentals/kolea-condos/ It makes sense that that page be a site link as it is one of my most used pages, but the problem is google gave it the site link "Kolea 10A". I am having 0 luck making any sense of why that was chosen. It should be something like "Kolea Condos" or something of that nature. Does anyone have any thoughts on where google is coming up with this?
Technical SEO | | RobDalton0 -
Links from the same server has value or not
Hi Guys, Sometime ago one of the SEO experts said to me if I get links from the same IP address, Google doesn't count them as with much value. For an example, I am a web devleoper and I host all my clients websites on one server and link them back to me. Im wondering whether those links have any value when it comes to seo or should I consider getting different hosting providers? Regards Uds
Technical SEO | | Uds0 -
Anchor links percent
I really don't have a clue about how many internal anchor links are recommended for a page. I think it could be split into anchor text in the article content and also in the whole page. The article content: Only the unique content of this page The whole page: Everthing including menus, sitemap, etc. Does percent really matter? Could an excesive amount of anchor links diminish pagerank in the source page? Can google see an excesive amount of internal content links as spamming? Thanks 🙂 !!
Technical SEO | | heroselohim0 -
Canonical Question
Our site has thousands of items, however using the old "Widgets" analogy we are unsure on how to implement the canonical tag, and if we need to at all. At the moment our main product pages lists all different "widget" products on one page, however the user can visit other sub pages that filter out the different versions of the product. I.e. glass widgets (20 products)
Technical SEO | | Corpsemerch
glass blue widgets (15 products)
glass red widgets (5 products)
etc.... I.e. plastic widgets (70 products)
plastic blue widgets (50 products)
plastic red widgets (20 products)
etc.... As the sub pages are repeating products from the main widgets page we added the canonical tag on the sub pages to refer to the main widget page. The thinking is that Google wont hit us with a penalty for duplicate content. As such the subpages shouldnt rank very well but the main page should gather any link juice from these subpages? Typically once we added the canonical tag it was coming up to the penguin update, lost a 20%-30% of our traffic and its difficult not to think it was the canonical tag dropping our subpages from the serps. Im tempted to remove the tag and return to how the site used to be repeating products on subpages.. not in a seo way but to help visitors drill down to what they want quickly. Any comments would be welcome..0 -
Tracking a Crawl error
Hi All, If you find a crawl error on your page. How do you find it? The error only says the URL that is wrong but this is not the location. Can i drill down and find out more information? Thank you!
Technical SEO | | wedmonds0