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
-
Dealing with broken internal links/404s. What's best practice?
I've just started working on a website that has generated lots (100s) of broken internal links. Essentially specific pages have been removed over time and nobody has been keeping an eye on what internal links might have been affected. Most of these are internal links that are embedded in content which hasn't been updated following the page's deletion. What's my best way to approach fixing these broken links? My plan is currently to redirect where appropriate (from a specific service page that doesn't exist to the overall service category maybe?) but there are lots of pages that don't have a similar or equivalent page. I presume I'll need to go through the content removing the links or replacing them where possible. My example is a specific staff member who no longer works there and is linked to from a category page, should i be redirecting from the old staff member and updating the anchor text, or just straight up replacing the whole thing to link to the right person? In most cases, these pages don't rank and I can't think of many that have any external websites linking to them. I'm over thinking all of this? Please help! 🙂
Technical SEO | | Adam_SEO_Learning0 -
Invert canonicals?
Hi, We have 2 sites, site A and site B. For now, some of our articles are duplicated on site B with rel canonicals towards site A. Starting now, Site B will be the main site for this category, we'll only post the content on this site. We will keep the old content on site A. But what do you think will happen if we invert the canonicals for the old articles? They would go towards site B. Would google eventually update its index, a bit like it would do for a redirect? Thanks !
Technical SEO | | AdrienLargus0 -
Do canonical tags pass all of the link juice onto the URL they point to?
I have an ecommerce website where the category pages have various sorting and paging options which add a suffix to the URLs. My site is setup so the root category URL, domain.com/category-name, has a canonical tag pointing to domain.com/category-name/page1/price however all links, both interner & external, point to the former (i.e. domain.com/category-name). I would like to know whether all of the link juice is being passed onto the canonical tag URL? Otherwise should I change the canonical tag to point the other way? Thanks!
Technical SEO | | tjhossy0 -
Google Shows 24K Links b/w 2 sites that are not linked
Good Morning, Does anyone have any idea why Google WMT shows me that i have 24,101 backlinks from one of my sites ( http://goo.gl/Jb4ng ) pointing to my other site ( http://goo.gl/JgK1e ) ... These sites have zero links between them, as far as I can see/tell. Can someone please help me figure out why Google is showing 24k backlinks? Thanks
Technical SEO | | Prime850 -
No results with Link Analysis
So I have been working with a domain since November last year that still shows no improvement in regards to the link analysis. I am baffled because we have gotten them onto the first page on Google for a few of the keywords we are optimizing. Any help with this is greatly appreciated and I am a noob so definitely open to learning. Thanks in advance to all of you. Domain in question - www.modernportablerefrigeration.com Domain is currently on a shared server if that makes any difference. Cordially, Todd Richard admin@richfinn.org
Technical SEO | | RichFinnSEO0 -
Canonical tags
Hi there, I have just noticed that SEOmoz picked up some duplicates links that I would like to resolve but not sure how. For example, the "Finding work in the arts" article has two links: http://www.creative-choices.co.uk/develop-your-career/article/finding-work-in-the-arts http://www.creative-choices.co.uk/develop-your-career/article/finding-work-in-the-arts?utm_source=Website&utm_medium=Website&utm_content=Finding+work+in+the+arts&utm_campaign=Footer+Links Both links can be found on this page http://www.creative-choices.co.uk/industry-news-views/article/what-employers-are-looking-for (see attachment). Would automatically generated canonical tags by the CMS solve this issue? rmxiP
Technical SEO | | CreativeChoices0 -
How is link juice passed to links that appear more than once on a given page?
For the sake of simplicity, let's say Page X has 100 links on it, and it has 100 points of link juice. Each page being linked to would essentially get 1 point of link juice. Right? Now let's say Page X links to Page Y 3 times and Page Z 5 times, and every other link only once. Does this mean that Page Y would get 3 "link juice points" and Page Z would get 5? Note: I know that the situation is much more complex than this, such as the devaluation of footer links, etc, etc, etc. However, I am interested to hear peoples take on the above scenario, assuming all else is equal.
Technical SEO | | bheard0