Robots.txt vs meta tag conflicts

Robots.txt vs meta tag conflicts

Have you ever wondered what would resolve if your robtos.txt and your meta tags had conflicting directives regarding content indexing? Don’t worry, this question can be a real challenge to even very advanced SEOs. To make this issue a bit clearer to the general public, I decided to make this guide that will show you exactly what happens in these situations.

Robots.txt noindex vs meta noindex, which one has priority?

Case 1: Robots.txt forbids indexing of a URL but meta tag allows it. Outcome: Page will be blocked by robots.txt, meta tag will never be seen by googlebot thus will be ignored, page will only be shown in results as a reference in very rare occasions (it will not have a description, only title and URL).

Case 2: Robots.txt allows indexing of a URL but meta tags forbids it. Outcome: Page will not be indexed and will not be shown in the search results at all.

Case 3: Both Robots.txt and meta tag forbid the indexing of a URL. Outcome: Page will be blocked by robots.txt, meta tag will never be seen by googlebot thus will be ignored, which will allow the page to be shown as snippet with no description in rare occasions in the search results.

Meta noindex vs meta index conflict: If a single page has both meta noindex and meta index tags, meta noindex will resolve. The page will not be shown in the search results.

Advanced stuff, passing Page Rank in robots.txt and meta conflicts

Now that you understand the cases above, lets move on to something even more advanced. When will the link juice be passed and when it will not. As you may or may not know, even pages that are forbidden to be indexed via any means can still accumulate PageRank. If you don’t know how to handle it properly, you might be wasting a large amount of your link juice that could have flown to pages you actually want to receive it.

If you forbid indexing on a URL with robots.txt, Google is not able to see the content of the page, thus no links on that URL will ever be seen and they will not be able to pass their link juice.

On the other hand, if you use meta name=”robots” content=”noindex” and don’t forbid that URL through robots.txt, Google will be able to index the page, follow the links and pass the link juice, but will not be able to show the page in the search results.

From this we can conclude that in most cases, it’s much better decision to forbid indexing through meta tag than use robots.txt for the same purpose.

Need help with your Magento store’s SEO? Request a quote!

Related Inchoo Services

You made it all the way down here so you must have enjoyed this post! You may also like:

On-Page SEO Strategies for eCommerce Businesses Lucija Majstrovic

On-Page SEO Strategies for eCommerce Businesses

Unlocking Success: Role of On-Page SEO for Online Stores Lucija Majstrovic

Unlocking Success: Role of On-Page SEO for Online Stores

Magento 2 SEO Expert Advice Straight To Your Fingertips Lucija Majstrovic

Magento 2 SEO Expert Advice Straight To Your Fingertips

Tell us about your project

Drop us a line. We'd love to know more about your project.