Skip to main content
SlapMyWeb

SEO fix

How to Remove an Accidental noindex

Find and remove a stray noindex that is keeping an important page out of Google entirely.

Difficulty
Easy
Impact
Critical
Time
5 min

Before

<meta name="robots" content="noindex, nofollow">  <!-- leftover from staging -->

After

<meta name="robots" content="index, follow">  <!-- or remove the tag entirely -->
Before and after code for: How to Remove an Accidental noindex

A noindex directive on an important page tells search engines to keep it out of their results entirely, so it can never rank however good it is. It is usually left over from a staging environment or a CMS setting. Remove the noindex from the robots meta tag or the X-Robots-Tag header, then request reindexing in Search Console.

Why it matters

A noindex directive, often left over from a staging site or a plugin default, tells Google to drop the page from its index completely. It is a silent traffic killer: the page works fine for users but earns zero organic visits.

How to fix it

  1. Check both places

    Look for <meta name="robots" content="noindex"> in the HTML AND an X-Robots-Tag: noindex response header.
  2. Remove it from pages you want ranked

    Delete the directive (or set index, follow) on real content pages; keep noindex only on thin/utility pages.
  3. Re-request indexing

    Use Google Search Console → URL Inspection → Request Indexing to speed re-crawling.

The code

Beforehtml
<meta name="robots" content="noindex, nofollow">  <!-- leftover from staging -->
Afterhtml
<meta name="robots" content="index, follow">  <!-- or remove the tag entirely -->

On your platform

WordPress

Check Settings → Reading → "Discourage search engines" is UNticked, and the per-page Yoast/Rank Math "Allow search engines to show this page" is set to Yes.

Next.js

Ensure no robots: { index: false } in the page metadata for pages you want indexed.

Sources

Check your site with our free tool

Meta Tag Analyzer

Fixed that one.
Now find the rest.

A free audit ranks every issue on your site by the score points it costs, and links each one straight to its guide.

Run a free audit
Free foreverNo signupLive scan progress