Conflicting indexability directives in meta robots tag and X-Robots-Tag header cause search engines to deindex pages unintentionally.
By Seoxpert Editorial · Published
When the HTML meta robots tag and the X-Robots-Tag HTTP header give different indexability instructions, Google will follow the most restrictive rule. This can result in pages being deindexed even if the meta tag suggests they should be indexed, leading to unexpected loss of search visibility.
Pages may be removed from search results despite appearing indexable in the HTML source.
A crawler compares the content of the meta robots tag and the X-Robots-Tag HTTP header for conflicting index/noindex directives.
Conflicting directives (problem)
<!-- HTML meta tag -->
<meta name="robots" content="index, follow">
<!-- HTTP response header -->
X-Robots-Tag: noindex, nofollowAligned directives (fix)
<!-- HTML meta tag -->
<meta name="robots" content="index, follow">
<!-- HTTP response header -->
X-Robots-Tag: index, followSingle source (fix)
<!-- HTML meta tag only -->
<meta name="robots" content="index, follow">
<!-- No X-Robots-Tag header -->Google follows the most restrictive directive, typically 'noindex' if present in either location.
It's best to use only one method per page to avoid conflicts—meta tag for HTML, X-Robots-Tag header for non-HTML resources.
Inspect both the HTML source for meta robots tags and the HTTP headers for X-Robots-Tag on each page.
Yes, if 'noindex' is present in either directive, Google may remove the page from search results.
Run a scan to see if Meta Robots and X-Robots-Tag Disagree on Indexability affects your pages.
Scan my website →