Recently I learned that e.g. Google was not indexing pages that didn't have canonical links, so in the code below, I am setting the canonical link to the homepage itself (index.html).

Question: for example, for the home page (index.html) is the canonical meta-tag below correct, or would it raise canonical-based meta tag page errors?

<link rel="canonical" hreflang="en-us" href="http://www.company.com/index.html"> 

Below is a pic of the search console showing 32 pages that weren't indexed because of error "Duplicate page without cononical tag," and FYI there are no duplicate pages as they all have unique filename.html.


  • 1
    Would there be any potential issue with this? Uh. Yeah! You are telling Google that your pages are a duplicate and hence Google is ignoring the page. – closetnoc Mar 7 '18 at 0:43
  • 1
    I removed your second question (a question post should always be about one topic). It could be its own question, but you’ll likely find several questions/answers on this site about it. – unor Mar 7 '18 at 0:45
  • On which page (which URL) do you add this link? – unor Mar 7 '18 at 0:47
  • 1
    I think you may be asking this: Does a link rel canonical tag pointing back to the page itself cause an infinite loop that wastes crawl budget? But if you made all your pages canonical to index.html that would be a problem. Actually, why would you ever include index.html in the canonical? Even for the home page that can be omitted for a much cleaner URL. – Stephen Ostermiller Mar 7 '18 at 0:54
  • 1
    And where did you hear that Google doesn't index pages that don't have a canonical tag? That is completely untrue. Google indexes plenty of sites that don't use canonical tags at all. – Stephen Ostermiller Mar 7 '18 at 0:58

Set the canonical page to the page that you want to have indexed.

If your site has




all as the same page this is a duplicate content issue.

If you put a rel canonical tag of example.com/news/article pointing to your homepage then google won't index your news article page. You want your canonical tag to point to example.com/news/article

| improve this answer | |