How to Fix "Excluded by Noindex Tag" in Google Search Console
'Excluded by noindex tag' means Googlebot crawled the URL and found either a <meta name="robots" content="noindex"> tag in HTML or an HTTP X-Robots-Tag: noindex response header—instructing Google to drop the URL from search results completely.
Why Does This Issue Occur? (Symptom & Cause Matrix)
| Observed Symptom | Root Technical Cause | Recommended Fix |
|---|---|---|
| Entire site missing from Google | WordPress 'Discourage search engines' checked or staging header | Uncheck privacy setting / remove X-Robots-Tag header on production |
| Specific Next.js page excluded | robots: { index: false } inherited from layout | Set robots: { index: true, follow: true } in Metadata |
Step-by-Step Fix Checklist
- 1
Inspect Live HTML & HTTP Response Headers
Run curl -I https://yourdomain.com/page and check for X-Robots-Tag: noindex as well as HTML <meta name="robots">.
- 2
Audit Hosting / Vercel Preview Headers
Ensure custom domains do not serve preview/staging header rules.
- 3
Re-Submit via URL Inspection & IndexNow
Once index, follow is restored, trigger Inspect URL → Request Indexing in GSC.
Enable Indexing in Next.js App Router Metadata
export const metadata: Metadata = {
robots: {
index: true,
follow: true,
googleBot: { index: true, follow: true, "max-snippet": -1 },
},
};People Also Ask About This Error
Should /login or /admin pages have noindex?
Internal private portals can use noindex, whereas public landing pages, tools, and guides must always allow indexing.
Can X-Robots-Tag override HTML meta tags?
Yes—if either the HTTP header OR the HTML tag says noindex, Google respects the more restrictive directive.