Thursday, March 29, 2018

How to Stop Indexing of Labels & Archives in Blogger

Noindex Labels and Archives in Blogger

In Blogger, Google indexes the Archives and Labels pages in search results which creates a duplicate content issue. Google takes strict action against duplicate content i.e if you have more than one URL pointing to a same page.

So, it is advised to no-index your Blogger Labels and Archives pages so your blog won't get penalized by the search engine.

So, lets do this one by one. In this Blogger tutorial, I will show you how to prevent duplicate content issue by telling search engine not to index archive pages and label pages. Let's proceed.

How to Avoid indexing of Archive pages in Blogger

To noindex Archive pages in Blogger, you have to add a 3 line of code to your Blogger template inside the <head> section. Follow the steps below:
  • Go to your Blogger dashboard and select your blog.
  • At the left side, Click Theme > Edit HTML.
  • Find the <head> tag. Place your mouse cursor anywhere in the code, and press Ctrl+F and search <head>.
  • Just below the <head> tag, paste the below code.
<b:if cond=’data:blog.pageType == &quot;archive&quot;’>
<meta content=’noindex,noarchive’ name=’robots’/>
</b:if>
  • Click Save theme. Press Hide warning before saving the theme. 
The above code will tell the search engine to stop indexing Archive pages. Your already indexed archives pages will disappear from the search results after sometime. It could take about 2 months.

How to Avoid indexing of Labels in Blogger

  • Go to your Blogger dashboard.
  • At the left side, Click Settings > Search Preferences.

Blogger tutorial - HowToArticle

  • Scroll down till you find Crawlers and indexing section.
  • Under Custom robots.txt, enable it if disabled. Click Edit.
  • Add the below code.
User-agent: *
Disallow: /search/labels/ Allow: /
no index labels in Blogger

That's it. This will tell search engine to exclude crawling and indexing labels pages of your blog. The robots.txt file is an important file for every blog and you should add custom robots.txt file.

If you haven't added one, you can do so by first creating a sitemap for your blogger blog and then add it to robots.txt file, learn how to do it here.

3 comments:

  1. Blogs are not just for socializing with others but it can also give us useful information. like this just like me I'am a new blogger and this article gave me lots of ideas on how to start blogging to a site or posts.

    ReplyDelete
    Replies
    1. I'm glad the information provided here is useful to you. Thanks for reading.

      Delete
  2. just tried the above code in my blog..lets see what output it generates

    ReplyDelete

Join the Discussion by leaving the comments!