Logo

dev-resources.site

for different kinds of informations.

Page can't be indexed in Google Search Console

Published at
1/9/2025
Categories
nextjs
vercel
seo
google
Author
toshiya_matsumoto_ac94abe
Categories
4 categories in total
nextjs
open
vercel
open
seo
open
google
open
Author
25 person written this
toshiya_matsumoto_ac94abe
open
Page can't be indexed in Google Search Console

Problem

My personal website pages built with NextJs v14.x.x hosted by Vercel were not indexed at all for ages somewhere down the line ... very shocking...

Details in Google Search Console

When you visit Sitemap page, it says Couldn't fetch.
When I visited URL Inspection page, it says Site-wide availability issues.

Investigating Process

However I could see the content https:mypage/sitemap.xml on browser.

curl -I https:mypage/sitemap.xml shows 200 response status properly.

Then I checked more details in Site-wide availability issues on https://support.google.com/webmasters/answer/9012289#will_i_be_indexed&zippy=%2Csite-wide-availability-issues

and then found this one:

Robots.txt unreachable: Google won't crawl a website if the robots.txt file is present but not reachable. You can check your robots.txt availability in the Crawl Stats report.

Then I realised thathttps:mypage/robots.txt returns 500 status despite the fact that I didn't prepare the robots.txt in my NextJS directory.

Running production mode in NextJS hides the error details while dev mode shows you the details.

Voila, my poor error handling returns 500 status even though /robots.txt does not exist which in turn confused Google Indexer and put it the label of Not Indexable Page.

The case is closed.

seo Article's
30 articles in total
Favicon
Easy 301 Redirects For SEO
Favicon
Schema Markup can boost your click-through rates by up to 30%?
Favicon
The Surprising Truth About Local SEO for Attorneys in 2025: Why They Are Rethinking Their Strategy
Favicon
How are LLMs Transforming Search Algorithms, and How Can You Adapt Your SEO Strategy?
Favicon
Adding structured data with Perl
Favicon
Why Different Sites Show Different Backlink Numbers: A Comprehensive Explanation
Favicon
How to Perform a Comprehensive SEO Audit
Favicon
How to Use Google Search Console: A Comprehensive Guide
Favicon
Page can't be indexed in Google Search Console
Favicon
The Importance of Choosing the Right Digital Marketing Services Providers
Favicon
10 Best Platforms to Launch Your Developer Tool
Favicon
Enhancing SaaS Product Development with Technical SEO Best Practices
Favicon
Unlocking the Power of On-Page SEO: 5 Game-Changing Tactics to Skyrocket Your Visibility
Favicon
Integrating Web Analytics for Smarter, Data-Driven Decisions
Favicon
Boost Your Business with Cutting-Edge Digital Advertising Services in Rishikesh
Favicon
Beginner SEO Guide: A Step-by-Step Journey to SEO Success
Favicon
7 Common Web Development Mistakes That Hurt SEO
Favicon
How to Optimize Your Website's SEO Content for AI
Favicon
The Ultimate Guide to Accelerated Mobile Pages: How AMP Improves Mobile and SEO Performance
Favicon
Mastering Keyword Research: How to Tailor Your Content for Search Engines and Boost Rankings
Favicon
Unlock the True Potential of Your Content: CMS Optimization Tips for SEO Success
Favicon
OpenGraph Protocol Explained: Optimize Your Website for Better Social Sharing
Favicon
SEO Optimization Checklist for Coding Your Website
Favicon
Will Your Marketing Email End Up in Spam? We Built a Tool to Find Out
Favicon
BrightEdge SEO Platform: A Comprehensive Guide for Digital Marketers
Favicon
How SEO AI Can Supercharge Your Content Marketing ROI
Favicon
Real Estate Websites: Designing Features That Sell Homes and Build Trust
Favicon
Can You Serve Only Data to AI Crawlers?
Favicon
Best Digital Marketing Company in Thrissur
Favicon
How to find the best freelancer SEO

Featured ones: