# Remove accidental noindex tags

- Check 04.04 · Indexing and canonicalization · Critical
- Source: https://checklist-seo-geo.com/en/indexing-canonicalization/remove-accidental-noindex-tags
- Find the source of every unintended noindex (theme, plugin, server, CDN, staging), remove it, get the pages reindexed and stop it from returning on deployment.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/indexing-canonicalization/remove-accidental-noindex-tags.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

An accidental `noindex` is an exclusion directive nobody intended, on a page that should be indexed: a WordPress box left checked after launch, an SEO plugin setting, a template copied from staging, a header added by a CDN. The check consists of spotting every affected page, identifying the exact source of the directive, removing it, getting the pages reindexed and putting a check in place that prevents it from happening again.

## Why it matters

Google applies a `noindex` as soon as it finds it while crawling the page: the page leaves the results, even if other sites link to it. Recovery is slow. Google states that it can take months before it comes back to a low-priority page, and a page removed from the index is precisely crawled less often.

Accidents almost always have the same origin: a setting meant for another environment or another page type.

- **Launch**: staging was set to `noindex`, and the configuration went to production along with the content.
- **CMS**: the WordPress visibility box, an SEO plugin’s per-content-type setting, a page template duplicated from a thank-you page.
- **Server and CDN**: an `X-Robots-Tag` set for a test directory and then widened, a forgotten header transform rule.
- **Frameworks**: a `robots` metadata entry in the root layout, a wrongly set environment variable.
- **Plugins and apps**: an update that changes a default value, a Shopify app that writes its own tag.

Generative engines built on search indexes lose the page at the same time: Google reserves links in AI Overviews for indexed pages, and Copilot relies on Bing’s index, which also honors `noindex`.

## What it improves

- **Indexing**: the affected pages become eligible for results again on the bot’s next visit.
- **Traffic**: gradual recovery of the lost impressions and clicks. The delay depends on how often each page is crawled.
- **AI answers**: renewed eligibility as a source in Google’s AI features and in Copilot, with no guarantee of citation.
- **Reliable releases**: an automated check blocks a recurrence before it costs weeks of traffic.

## How to check

**1. Search Console report.** In the [Page indexing report](https://search.google.com/search-console/index), open the “Excluded by ‘noindex’ tag” reason under “Why pages aren’t indexed”. Export the list and spot the URLs that should be indexed. Filter by sitemap (“All submitted pages”): a URL submitted in a sitemap and marked `noindex` is almost always a mistake, on one side or the other.

**2. Bing.** In Bing Webmaster Tools, URL Inspection also reports the directive. Run the test on your main pages.

**3. Full crawl.** Run Screaming Frog on the site, “Directives” tab, `Noindex` filter. The “Meta Robots” and “X-Robots-Tag” columns show where the directive comes from. Enable JavaScript rendering (`Configuration > Spider > Rendering`) if the site depends on it.

**4. Single-page test.**

```bash
curl -sI https://example.com/page/ | grep -i "x-robots-tag"
curl -s https://example.com/page/ | grep -i -o -E '<meta[^>]+name="(robots|googlebot|bingbot)"[^>]*>'
```

Expected result on a page to be indexed: no line containing `noindex`, neither in the header nor in the HTML.

## How to implement

### Before you start

Proceed in this order:

1. **Isolate the source.** Header or tag? One tag or several? Present in the initial HTML or only after rendering? A directive on one page but not on its neighbor points to a per-item setting; on every page, to a global, server or CDN setting.
2. **Fix it at the source**, then clear every cache (plugin, server, CDN), otherwise the old version keeps being served.
3. **Test again** with `curl` and URL Inspection, “Test live URL” button.
4. **Get the pages recrawled** (see the last subsection).
5. **Add a safeguard** to deployment.

If the pages are also blocked in robots.txt, remove the corresponding `Disallow` rule: a removed `noindex` is only noticed if the bot can come back to the page.

### Apache

Versions: Apache 2.4.

Search for the directive across the whole configuration and in the `.htaccess` files:

```bash
sudo grep -rni "x-robots-tag" /etc/apache2/ /etc/httpd/ 2>/dev/null
find /var/www -name ".htaccess" -exec grep -li "x-robots-tag" {} +
```

Remove or restrict the offending `Header set X-Robots-Tag` line, for example by limiting it to the staging host alone in its own `<VirtualHost>`. Reload with `sudo apachectl configtest && sudo systemctl reload apache2`.

### Nginx

Versions: Nginx 1.18 and later.

```bash
sudo grep -rn "X-Robots-Tag" /etc/nginx/
```

An `add_header X-Robots-Tag` placed in the `http` context or in a file included by every host applies to every site on the server. Move it into the staging `server` block only. Reload with `sudo nginx -t && sudo systemctl reload nginx`.

### Cloudflare

Versions: Cloudflare dashboard, all plans, November 2026.

Open the [Rules Overview](https://dash.cloudflare.com/?to=/:account/:zone/rules/overview) and review the response header transform rules: look for `X-Robots-Tag`. Also check the Workers routes attached to the domain: a script can rewrite headers or HTML. Then purge the cache in [`Caching > Configuration`](https://dash.cloudflare.com/?to=/:account/:zone/caching/configuration).

### Plesk

Versions: Plesk Obsidian 18.0.

Open `Websites & Domains > your domain > Apache & nginx Settings` and reread the additional Apache and nginx directives: an `X-Robots-Tag` added for acceptance testing may have been left there. Also check the `.htaccess` at the site root with the File Manager.

### cPanel

Versions: cPanel & WHM 110 and later, Jupiter theme.

In `Files > File Manager`, show hidden files and open `public_html/.htaccess`: look for `X-Robots-Tag`. The staging site copy tools some hosts provide (for example through WP Toolkit or Softaculous) can carry this file over along with the rest.

### Shared hosting

Same method as cPanel: the `.htaccess` at the root, then those in subfolders. Some hosts offer an option in their control panel that hides the site from search engines during construction: check that it is turned off.

### Vercel

Versions: Vercel platform, all plans, November 2026.

Vercel adds `X-Robots-Tag: noindex` to preview deployments and to each deployment’s own URLs. Test your production domain, not a deployment’s `.vercel.app` URL: only the former should be indexable. Then look for the header in `vercel.json` and in `next.config.js` (or `next.config.ts`).

### Netlify

Versions: Netlify platform, all plans, November 2026.

Netlify adds `X-Robots-Tag: noindex` to Deploy Previews and to older branch deploys. If production receives it, search the `_headers` file and `netlify.toml`, especially in a `[context.production]` or `[[headers]]` block.

### WordPress

Versions: WordPress 5.7 to 7.1; Yoast SEO 20 and later (28.x in November 2026); Rank Math 1.0.

Check in this order:

1. `Settings > Reading`: the box that asks search engines not to index the site must be unchecked. When checked, it adds `noindex, nofollow` to the whole site.
2. **Yoast SEO**: `Yoast SEO > Settings`, Content types and Categories & tags sections, search results display setting for each type. Then, in each affected item, the Advanced tab of the Yoast box, the question about allowing the content to be shown in search results.
3. **Rank Math**: `Rank Math SEO > Titles & Meta`, the tab for each content type, Robots Meta setting; then the Advanced tab of each item.
4. **Theme**: look for a hard-coded tag.

```bash
grep -rn "noindex" wp-content/themes/ wp-content/mu-plugins/ 2>/dev/null
```

5. **Maintenance or “coming soon” plugins**: deactivated after launch.

Finally, clear the caching plugin’s cache and the CDN’s.

### Shopify

Versions: Shopify admin, all plans, November 2026.

- **Unlisted product**: a product with the “Unlisted” status is excluded from search engines, the sitemap and collections, while remaining accessible through its URL. Set it back to “Active” if it needs to be found.
- **Page, product or article**: the `seo.hidden` metafield set to `1` hides the item from search engines and the sitemap. It appears in the item’s “Metafields” section only if a `seo.hidden` definition exists in `Settings > Metafields and metaobjects`; clear the value and save. If the admin says the namespace is already taken, an app manages it: go through its settings.
- **Theme**: `Online Store > Themes > Edit code`, search for `noindex` in `layout/theme.liquid` and in the snippets (`snippets`).
- **SEO apps**: an app can write its own tags; check its settings.

### Wix

Versions: Wix Editor and Wix Studio, November 2026.

In the editor, open the SEO settings of the page concerned: the “Let search engines index this page” option must be enabled. Also check the site’s global indexing setting in the dashboard’s SEO settings, then publish.

### Squarespace

Versions: Squarespace 7.1 (code injection: Core, Plus and Advanced plans), November 2026.

In the page settings, SEO tab, turn off the option that hides the page from search engines. Also check the page header code injection (Advanced tab) and the site-wide code injection.

### Webflow

Versions: Webflow interface (site and page settings), November 2026.

In the page settings, look for a `noindex` tag in the `<head>` custom code. Site-wide custom code, in the site settings, applies to every page.

### Laravel

Versions: Laravel 10 to 13.

Look for a middleware or view that produces the directive:

```bash
grep -rni "x-robots-tag\|noindex" app/ resources/views/ config/ routes/
```

If the directive depends on the environment, check the actual value in production (`php artisan about` shows the environment) and invert the condition: directive only outside production.

```php
if (! app()->isProduction()) {
    $response->headers->set('X-Robots-Tag', 'noindex, nofollow');
}
```

Without `APP_ENV`, Laravel assumes production by default (fallback value in `config/app.php`). On the other hand, a mistyped value in production, such as `prod`, adds the directive to the whole site: the deployment test described below catches it.

### Next.js

Versions: Next.js 15 and 16, App Router and Pages Router.

```bash
grep -rn "robots" app/ src/app/ pages/ src/pages/ next.config.* 2>/dev/null
```

If the directive depends on the environment, base it on an explicit variable and test it at build time. Outside Vercel, a variable forgotten in production puts the whole site in `noindex`: the deployment test below is there precisely to catch it. How to write the directive depends on the router.

#### App Router

A `robots: { index: false }` metadata entry in `app/layout.js` applies to every page:

```js
// app/layout.js
const isProduction = process.env.VERCEL_ENV === 'production' || process.env.APP_ENV === 'production';

export const metadata = {
  robots: isProduction ? { index: true, follow: true } : { index: false, follow: false },
};
```

#### Pages Router

The tag is written with `next/head`, often in `pages/_app.js` or `pages/_document.js`. A variable read in the browser must start with `NEXT_PUBLIC_`:

```js
// pages/_app.js
import Head from 'next/head';

const isProduction = process.env.NEXT_PUBLIC_VERCEL_ENV === 'production' || process.env.NEXT_PUBLIC_APP_ENV === 'production';

export default function App({ Component, pageProps }) {
  return (
    <>
      {!isProduction && (
        <Head>
          <meta name="robots" content="noindex, nofollow" />
        </Head>
      )}
      <Component {...pageProps} />
    </>
  );
}
```

### Get the pages reindexed

- **Priority pages**: in [URL Inspection](https://search.google.com/search-console?action=inspect), “Test live URL” then “Request indexing”. The number of daily requests is limited: keep them for important pages.
- **All pages**: in the Page indexing report, open the “Excluded by ‘noindex’ tag” reason and click “Validate Fix”. Also resubmit your sitemaps in the [Sitemaps report](https://search.google.com/search-console/sitemaps).
- **Bing**: URL Inspection and URL Submission in Bing Webmaster Tools, or an IndexNow notification if you have set it up; see [set up IndexNow](https://checklist-seo-geo.com/en/crawling/set-up-indexnow-if-relevant).

### Prevent a recurrence

Add a test to the deployment pipeline that fails if a key production page returns `noindex`:

```bash
#!/usr/bin/env bash
set -euo pipefail

urls=(
  "https://example.com/"
  "https://example.com/tarifs"
  "https://example.com/blog/"
)

status=0

for url in "${urls[@]}"; do
  headers=$(curl -s -D - -o /tmp/page.html "$url")

  if grep -qi "^x-robots-tag:.*noindex" <<< "$headers" || grep -qi '<meta[^>]*name="robots"[^>]*noindex' /tmp/page.html; then
    echo "noindex detected on $url"
    status=1
  fi
done

exit $status
```

Add an alert as well: most monitoring tools can check for the presence or absence of a word on a page. Also rerun this test after every SEO plugin or theme update.

## Common mistakes

- **Fixing the tag without purging caches**: the caching plugin or the CDN keeps serving the old page.
- **Removing the `noindex` while leaving a `Disallow`**: the bot does not come back to see the fix.
- **Fixing only the HTML tag** when the `X-Robots-Tag` header is also present, or the other way round.
- **Requesting indexing for hundreds of URLs one by one**: the quota runs out quickly; use “Validate Fix” and sitemaps.
- **Keeping `noindex` pages in the sitemap**: Search Console flags them as errors; remove them or remove the directive, depending on what is intended; see [exclude redirects, errors and noindex pages](https://checklist-seo-geo.com/en/crawling/exclude-redirects-errors-noindex-pages).
- **Testing the wrong URL**: a preview deployment’s address is `noindex` by design.
- **Checking the WordPress visibility box on staging as protection**: the box ends up being copied to production, and it protects nothing.

## Frequently asked questions

### How long does it take for a page to return to Google after a noindex is removed?

The page returns when Googlebot recrawls it and sees that the directive is gone. For an important page that is crawled often, this can take a few days, especially after an indexing request. For a page with few links, Google states that the next visit can take months. Speed things up with URL Inspection, fix validation in Search Console and an up-to-date sitemap.

### Why does Search Console still report a noindex I have removed?

Search Console shows the state of the last crawl, not of the current page. Run “Test live URL” in URL Inspection: if the test no longer finds a noindex, the fix is done and the report will update on the next visit. If the test still finds it, a cache, an X-Robots-Tag header from the server or CDN, or a second tag added by a plugin is to blame.

### How do I find where a noindex comes from on WordPress?

Start with Settings, Reading: the search engine visibility box adds noindex to the whole site. Then check the per-content-type settings in Yoast SEO or Rank Math, then the Advanced tab of the item concerned. If the directive persists, look for it in the HTTP header with curl and in the theme, and deactivate maintenance plugins. Finally, clear the cache.

### Does an accidental noindex mean losing rankings for good?

No, not for good. Once the directive is removed and the page recrawled, Google can index it again and rank it on the same criteria as before. The return is not instant and is not guaranteed at the same level if competitors have moved ahead in the meantime or if the page has lost links. The sooner the noindex is fixed, the more limited the impact.

## Resources

- [Google: Block indexing with noindex, and debugging](https://developers.google.com/search/docs/crawling-indexing/block-indexing?hl=en)
- [Google: Page indexing report](https://support.google.com/webmasters/answer/7440203?hl=en)
- [Google: URL Inspection tool](https://support.google.com/webmasters/answer/9012289?hl=en)
- [Google: Robots meta tag and X-Robots-Tag specifications](https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag?hl=en)
- [Vercel: Are Vercel preview deployments indexed by search engines?](https://vercel.com/kb/guide/are-vercel-preview-deployment-indexed-by-search-engines)
- [Netlify: deploy overview and indexing](https://docs.netlify.com/deploy/deploy-overview/)
- [Shopify: Hide a page from search engines](https://help.shopify.com/en/manual/promoting-marketing/seo/hide-a-page-from-search-engines)
- [Wix: Hiding a page from search engines](https://support.wix.com/en/article/hiding-a-page-from-search-engines-google)

Next steps: [fix abnormal exclusions](https://checklist-seo-geo.com/en/indexing-canonicalization/fix-abnormal-exclusions) and [protect staging with authentication](https://checklist-seo-geo.com/en/indexing-canonicalization/protect-staging-private-data-authentication).
