Skip to content

fix(seo): redirect orphaned paths and stop linking through redirects - #16

Merged
shawnmuggle merged 1 commit into
mainfrom
fix/seo-404-redirects
Jul 28, 2026
Merged

fix(seo): redirect orphaned paths and stop linking through redirects#16
shawnmuggle merged 1 commit into
mainfrom
fix/seo-404-redirects

Conversation

@shawnmuggle

Copy link
Copy Markdown
Member

Fixes the Google Search Console findings for docs.rozo.ai: "Not found (404)" and "Page with redirect".

Root cause

This repo contains directories that appear in zero lines of SUMMARY.md. GitBook publishes only what SUMMARY.md lists, so these files sit in git while returning 404 to crawlers that discovered them through old or external links.

There was also no redirects config in the repo at all — no .gitbook.yaml, netlify.toml or vercel.json — which is precisely why no custom redirect was in effect.

Changes

1. New .gitbook.yaml with five redirects. Every destination was verified to return 200:

404 path → destination
/reports /contact/contracts-and-audits
/reward-docs /products/intent-based-earn
/docs /contact/contact-us
/rozo-intentpay-techdoc /start/litepaper/rozo-intentpay-techdoc
/testnet /tests/testnet

Deliberately left as 404, because no meaningful destination exists:

  • /blogs — unpublished drafts (en/es/zh)
  • /products-1 — a "Coming soon" stub
  • /integration/api-doc/api-for-advanced-used — a parent path that never had a page

2. Two internal links fixed in products/intent-based-bridge/intent-based-bridge.md, both of which pointed through a redirect rather than at the canonical URL:

  • https://docs.rozo.ai/api-doc307/integration/api-doc
  • https://intents.rozo.ai/308/bridge

Not changed, on purpose

All 46 sitemap URLs return 200 with index, follow and correct self-referencing canonicals. The sitemap is auto-generated by GitBook from SUMMARY.md and needs no cleanup.

The remaining "Page with redirect" entries are GitBook's own 307s for pages that were renamed or moved (/contact/contact-us/privacy-policy/contact/privacy-policy, and similar). That GSC status is informational, not an error — the redirect target is indexed instead. GitBook does not expose a way to force 301.

⚠️ Merge note

This repo is a mirror of GitBook and the sync is bidirectional (see a5154c8 GitBook: Update content). Merging here may not be sufficient — confirm in the GitBook editor that the redirects took effect.

Post-deploy check

for u in reports reward-docs docs rozo-intentpay-techdoc testnet; do
  curl -so /dev/null -w "$u: %{http_code} -> %{redirect_url}\n" "https://docs.rozo.ai/$u"
done

# these must stay 404
for u in blogs products-1; do
  curl -so /dev/null -w "$u: %{http_code}\n" "https://docs.rozo.ai/$u"
done

curl -s https://docs.rozo.ai/sitemap.xml

🤖 Generated with Claude Code

Google Search Console reports "Not found (404)" for docs.rozo.ai. The
cause is directories that exist in this repo but appear nowhere in
SUMMARY.md - GitBook publishes only what SUMMARY.md lists, so these sit
in git while returning 404 to the crawlers that found them through old
links.

Add .gitbook.yaml (the repo had no redirects config at all, which is why
no custom redirect was in effect) mapping the five orphans that have a
genuine replacement. Every destination was verified to return 200.
/blogs, /products-1 and /integration/api-doc/api-for-advanced-used stay
404 on purpose: they are unpublished drafts, a "coming soon" stub, and a
parent path that never had a page.

Also fix two internal links that pointed through redirects rather than
at the canonical URL: docs.rozo.ai/api-doc 307s to
/integration/api-doc, and intents.rozo.ai/ 308s to /bridge.

Note: this repo is a mirror of GitBook and the sync is bidirectional.
Confirm in the GitBook editor that the redirects took effect after this
lands.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@shawnmuggle
shawnmuggle merged commit f33b954 into main Jul 28, 2026
3 checks passed
@shawnmuggle
shawnmuggle deleted the fix/seo-404-redirects branch July 28, 2026 02:20
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.

1 participant