Indexability · Robots directives

Mismatched noindex in HTML and header

Meta robots and X-Robots-Tag disagree on noindex. Google applies the most restrictive, which may drop the page.

How this page is built

The meta robots tag in the head of this page is index, follow, but the server sends an X-Robots-Tag: noindex response header. Google applies the most restrictive directive, so the page should not be indexed. It is left out of the XML sitemap.

Why it matters

The meta robots tag says index this page, but the X-Robots-Tag header says noindex. Google combines robots directives and follows the most restrictive one, so the page will be excluded.

Mismatches like this are hard to spot because the HTML looks correct. They usually come from a server or CDN rule that was added for another purpose.

How to check it

Read the meta robots tag in the page source, then check the response headers for X-Robots-Tag. If one says noindex and the other does not, they conflict. The URL inspection tool in Google Search Console reports which directive Google found and whether the page can be indexed.

How to fix it

Decide whether the page should be indexed, then make both sources agree. Usually that means removing the header and controlling indexing from the page itself.

Check response headers as well as the HTML whenever a page is unexpectedly missing from search results.

Back to all tests