Skip to content
FunnelGuard

Fix guide by FunnelsGuard

X-Robots-Tag noindex header on a landing page: how to fix it

SEO-027High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Every web page is sent with HTTP headers: small lines of information that travel before the page itself. One of them can be X-Robots-Tag. When it contains noindex, search engines are told to keep that URL out of their index. It works like the <meta name="robots" content="noindex"> tag, but it lives in the response header instead of the HTML.

Example of a response with the problemtext
HTTP/2 200
content-type: text/html; charset=UTF-8
x-robots-tag: noindex, nofollow

Why it costs you leads or sales

Where the header breaks the journey
  1. Person searchesLooks for your service or product
  2. Google resultsPage is not listed
  3. Server sends headerX-Robots-Tag: noindex
  4. Landing pageLoads normally for direct visitors
  5. Lead or saleNo organic visitors reach it

The page loads fine for people, but search engines are told to drop it.

Organic visits to the landing pageExample numbers
Organic visits to the landing page (example)Before header: 240 visits per week; Header live: 15 visits per week; After fix: 225 visits per week09218424015225Before headerHeader liveAfter fixvisits per week

Example: illustrative numbers showing organic visits before the header was added, while it was live, and after it was removed and the page reindexed.

How to check if your site has it

Check the header on your landing page
  1. Use curl

    Run curl -I https://example.com/your-landing-page and look for a line starting with x-robots-tag. Use your real URL.

  2. Or use browser dev tools

    In Chrome, open DevTools, go to the Network tab, reload, click the first request (the page URL) and read Response Headers.

  3. Or use Search Console

    Open URL Inspection for the page. If it says 'Excluded by noindex tag' or 'Indexing allowed? No: noindex detected in X-Robots-Tag HTTP header', the header is the cause.

  4. Test the final URL

    Check the URL after redirects, with and without www, and any variant used in ads. The header can differ by path or host.

Check headers from the command linebash
curl -sIL https://example.com/your-landing-page | grep -i -E "^(HTTP|x-robots-tag|location)"

How to fix it

Find and remove the header
  1. Check the CDN or proxy

    In Cloudflare, Fastly, CloudFront or similar, look for response header rules, transform rules, edge workers or functions that set X-Robots-Tag.

  2. Check the web server config

    Search Apache (.htaccess, virtual host) or nginx config files for X-Robots-Tag. Look for rules that match too broadly, such as a whole directory or a file pattern that includes your page.

  3. Check the application layer

    Look at CMS settings, SEO plugins, security or maintenance plugins and custom code that sends headers.

  4. Remove or narrow the rule

    Delete the noindex header for the landing page. If it was meant for something else (PDFs, staging, a private folder), limit it to those paths only.

  5. Clear caches

    Purge the CDN, server and plugin caches so the old header is not still served.

  6. Request reindexing

    In Search Console, run URL Inspection on the page and click Request indexing once the header is gone.

Where to look on your platform
  1. Check the server and .htaccess

    Open .htaccess and your host's config for Header set X-Robots-Tag. Managed hosts may add it on staging copies, so check your host's dashboard too.

  2. Check plugins

    Review SEO, security, maintenance mode and membership plugins. Also look in functions.php and mu-plugins for header( 'X-Robots-Tag or the wp_headers filter.

  3. Check Settings > Reading

    If 'Discourage search engines from indexing this site' is ticked, WordPress adds noindex. Untick it. Recent WordPress versions send it as a robots meta tag, but confirm with curl.

Apache: a rule that is too broad (remove it)htaccess
# Remove this if it matches your landing page
Header set X-Robots-Tag "noindex, nofollow"
Apache: limit noindex to PDFs onlyhtaccess
<FilesMatch "\.pdf$">
  Header set X-Robots-Tag "noindex"
</FilesMatch>
nginx: limit noindex to a private pathnginx
location /private/ {
  add_header X-Robots-Tag "noindex" always;
}
Landing page response headers

Before

  • x-robots-tag: noindex is present
  • Search Console reports noindex in the HTTP header
  • Page is missing from Google

After

  • No noindex in x-robots-tag
  • URL Inspection says indexing is allowed
  • Page can be crawled, indexed and ranked

How to confirm it's fixed

Confirmation checklist
  • curl -I on the live landing page shows no noindex in x-robots-tag
  • The final URL after redirects is also clean
  • The www and non-www versions, and any ad URLs, return the same result
  • Search Console URL Inspection shows 'Indexing allowed? Yes' for the live test
  • You requested indexing and the page appears in Google after a few days
  • The page meta robots tag is not noindex either

How to prevent it happening again

How this usually happens
  1. Day 1

    A noindex header is added to a staging or test setup

  2. Day 10

    The config is copied to production during a launch or migration

  3. Day 14

    Google recrawls the landing page and drops it

  4. Day 45

    Someone notices organic leads have fallen

  5. Day 46

    The header is removed and indexing is requested

Habits that prevent it
  • Add a header check to your launch and migration checklist
  • Keep staging and production config separate, and review diffs before deploying
  • Scope X-Robots-Tag rules to specific file types or paths
  • Document any CDN header rules and who owns them
  • Re-check key landing pages after CDN, host or plugin changes
  • Watch the Pages report in Search Console for 'Excluded by noindex tag'

How FunnelGuard handles this

Questions people ask

Why is my page noindex when there is no noindex meta tag?

The noindex is probably sent as an X-Robots-Tag HTTP header by your server, CDN or a plugin. Headers do not show in View Source. Run curl -I on the URL or use URL Inspection in Search Console to see it.

How do I check the X-Robots-Tag header on a page?

Run curl -I https://yourdomain.com/page and look for a line starting with x-robots-tag. You can also open Chrome DevTools, go to Network, reload and read the Response Headers of the first request.

How do I remove an X-Robots-Tag noindex header?

Find which layer sets it: CDN rules, the web server config (Apache or nginx), or a CMS plugin or custom code. Delete the rule or limit it to the files it was meant for, purge caches, then confirm with curl.

Is X-Robots-Tag noindex the same as a meta robots noindex?

They have the same effect, which is telling search engines not to index the page. The difference is where they live: the header is sent by the server, while the meta tag sits in the page's HTML. Either one can keep your page out of Google.

Why does Search Console say 'noindex detected in X-Robots-Tag HTTP header'?

Google received a response for your URL that included a noindex value in the X-Robots-Tag header. Remove that header at the server, CDN or app level, then use URL Inspection to test the live URL and request indexing.

How long does it take to get indexed after removing the header?

It varies and Google does not give a fixed time. After the header is gone, request indexing in Search Console and keep the page linked from your site. It can take days or longer to reappear.

Can a CDN like Cloudflare add a noindex header?

Yes. A response header rule, transform rule or edge worker can add X-Robots-Tag to responses. If your server and plugins are clean but curl still shows the header, check your CDN rules.

Can FunnelGuard detect a noindex X-Robots-Tag header?

Yes. FunnelGuard's indexability check reads the X-Robots-Tag header on your landing page and alerts you if it blocks indexing. It reports the problem but does not change your server settings.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: indexable reads the X-Robots-Tag header.

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.