Skip to content

fix(docs): fix Google indexing by resolving soft 404s and adding SEO files#102

Merged
uhyo merged 1 commit intomasterfrom
claude/fix-google-indexing-docs-4eFT2
Apr 5, 2026
Merged

fix(docs): fix Google indexing by resolving soft 404s and adding SEO files#102
uhyo merged 1 commit intomasterfrom
claude/fix-google-indexing-docs-4eFT2

Conversation

@uhyo
Copy link
Copy Markdown
Owner

@uhyo uhyo commented Apr 5, 2026

The SPA fallback (not_found_handling = "single-page-application") caused
Cloudflare to serve index.html with 200 OK for all non-existent URLs,
including /robots.txt and /sitemap.xml. This created massive soft 404
issues that prevented Google from indexing the site.

  • Change not_found_handling to "404-page" so unknown URLs get proper 404s
  • Add robots.txt allowing all crawlers and pointing to sitemap
  • Add sitemap.xml listing all documentation pages
  • Generate 404.html in the build so Cloudflare serves it for missing pages

https://claude.ai/code/session_013CBiA8ohEEwKH5DLwjKqkt

…files

The SPA fallback (`not_found_handling = "single-page-application"`) caused
Cloudflare to serve index.html with 200 OK for all non-existent URLs,
including /robots.txt and /sitemap.xml. This created massive soft 404
issues that prevented Google from indexing the site.

- Change not_found_handling to "404-page" so unknown URLs get proper 404s
- Add robots.txt allowing all crawlers and pointing to sitemap
- Add sitemap.xml listing all documentation pages
- Generate 404.html in the build so Cloudflare serves it for missing pages

https://claude.ai/code/session_013CBiA8ohEEwKH5DLwjKqkt
@uhyo uhyo merged commit e4cc94f into master Apr 5, 2026
2 checks passed
@uhyo uhyo deleted the claude/fix-google-indexing-docs-4eFT2 branch April 5, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants