Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Production noindex left from staging: how to find and fix it

OPS-297High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Staging sites are usually set to noindex so search engines do not list test copies. That is correct on staging. The problem starts when the setting travels to the live site with a deploy, a database copy, a theme export or a config file.

A noindex directive can sit in three places: a <meta name="robots" content="noindex"> tag in the page HTML, an X-Robots-Tag: noindex HTTP response header, or a CMS setting that outputs one of those two. It is different from a Disallow: / rule in robots.txt, which blocks crawling rather than indexing.

The tag that hides a page from Googlehtml
<meta name="robots" content="noindex, nofollow">

Why it costs you leads or sales

Google removes pages with noindex from its results the next time it recrawls them. Organic visitors who used to find your landing pages, product pages and blog posts stop arriving. Nothing looks broken when you click around the site, so it can go unnoticed for weeks.

Pages you send paid traffic to can be affected too. Noindex does not stop ads from running, but it can remove the same pages from organic search, so you pay for clicks that used to be free.

How a staging noindex reaches your leads
  1. Staging set to noindexCorrect for a test site
  2. Deploy or copy to productionSetting travels with it
  3. Google recrawlsReads noindex
  4. Pages dropped from searchOrganic visits fall
  5. Fewer leads and salesNo error shown

The site still works for people who have the link, so the loss is quiet.

Organic visits after a noindex deployExample numbers
Organic visits after a noindex deploy (example)Week 0: 1,000 visits per week; Week 1: 900 visits per week; Week 2: 550 visits per week; Week 3: 250 visits per week; Week 4: 120 visits per week03837671,000900550250120Week 0Week 1Week 2Week 3Week 4visits per week

Example: illustrative numbers showing organic visits falling in the weeks after the live site went out with noindex.

How to check if your site has it

Check a live page for noindex
  1. View the page source

    Open the live page, view source, and search for robots. Look for noindex in the content value.

  2. Check the response headers

    In browser DevTools, open the Network tab, reload, click the page request and look for X-Robots-Tag in the response headers.

  3. Use Google Search Console

    Run URL Inspection on the page. If it says 'Excluded by noindex tag', Google has seen the directive. Also check the Pages report.

  4. Check several page types

    Test the home page, a landing page, a product page and a blog post. Headers and templates can differ.

Check headers and HTML from the command linebash
curl -sI https://www.example.com/ | grep -i x-robots-tag
curl -s https://www.example.com/ | grep -i 'name="robots"'

How to fix it

Remove the directive at its source. The right place depends on how the site is built. Do not just delete it from one page if a template or server rule adds it everywhere.

Remove noindex by platform
  1. Untick Search engine visibility

    Go to Settings > Reading and clear 'Discourage search engines from indexing this site'. Save.

  2. Check your SEO plugin

    In Yoast, Rank Math or similar, check the page's advanced setting and the site-wide post type settings for noindex.

  3. Clear caches

    Purge page, plugin and CDN caches so the old tag is no longer served.

Example: header set only on stagingnginx
# staging server block only
add_header X-Robots-Tag "noindex, nofollow" always;

# production server block: do not include the line above

How to confirm it's fixed

Confirmation checks
  • View source on key pages shows no noindex in the robots meta tag
  • Response headers show no X-Robots-Tag: noindex
  • Search Console URL Inspection shows the live page as indexable
  • You have clicked 'Request indexing' for your most important pages
  • The sitemap is submitted and lists only pages you want indexed
  • Impressions in Search Console start to recover over the following days

Recovery is not instant. Google has to recrawl each page, so allow time for important pages to return.

How to prevent it happening again

Release habits that stop this
  • Drive the noindex setting from an environment variable, not a hard-coded value
  • Add 'indexable?' to your launch and release checklist
  • Exclude SEO and reading settings when copying a staging database to production
  • Add an automated check on the live URL after every deploy
  • Password-protect staging rather than relying on noindex alone
  • Watch Search Console for sudden drops in indexed pages
Release process

Before

  • Noindex toggled by hand on launch day
  • Nobody checks headers after deploy
  • Drop noticed from falling traffic

After

  • Noindex set by environment
  • Indexability checked after each deploy
  • Problem caught within a day

How FunnelGuard handles this

FunnelGuard detects this today. Its check looks at whether your monitored pages are indexable, so a noindex left over from staging shows up as a failed check rather than a slow fall in traffic. When a check fails, it is re-checked from a second region before one alert goes out, with a screenshot and a likely cause.

The robot visitor runs on a schedule, so it can catch the problem after a deploy rather than weeks later. The Free plan covers 1 site with 2 journeys and daily checks, no card needed. A free read-only website audit is also available.

Questions people ask

Why is my website not showing up on Google after launch?

A common cause is a noindex directive left over from staging. Check the page source for a robots meta tag, the response headers for X-Robots-Tag, and Search Console URL Inspection for 'Excluded by noindex tag'. Remove it and request indexing.

How do I check if my page has a noindex tag?

View the page source and search for 'robots', or open DevTools, Network tab, and look for an X-Robots-Tag response header. You can also run URL Inspection in Google Search Console, which reports if noindex blocks indexing.

How do I remove noindex from my WordPress site?

Go to Settings > Reading and untick 'Discourage search engines from indexing this site'. Then check your SEO plugin's page and post type settings, and clear all caches.

How long does Google take to reindex pages after removing noindex?

It depends on how often Google crawls your site. Important pages can return within days, others take longer. Requesting indexing in Search Console for key pages can help, but it does not guarantee timing.

Is noindex the same as robots.txt Disallow?

No. Noindex tells search engines not to list a page, while Disallow in robots.txt tells them not to crawl it. If crawling is blocked, Google cannot see that a noindex was removed, so fix both.

Why does noindex keep coming back after a deploy?

The setting is probably stored in code, config or a database that gets copied from staging. Move it to an environment-based setting and exclude SEO options when copying data to production.

Can FunnelGuard tell me if my live page is noindex?

Yes. FunnelGuard checks whether your monitored pages are indexable and alerts you if they are not, after a re-check from a second region.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: indexable.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.