: Canonical link to the same page 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
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.
More posts by @Cofer257
1 Comments
Sorted by latest first Latest Oldest Best
Set the canonical page to the page that you want to have indexed.
If your site has
example.com/news/article/
example.com/news/article
example.com/news/article.html
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
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.