fix(seo): redirect orphaned paths and stop linking through redirects - #16
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 whatSUMMARY.mdlists, 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.tomlorvercel.json— which is precisely why no custom redirect was in effect.Changes
1. New
.gitbook.yamlwith five redirects. Every destination was verified to return 200:/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/testnetDeliberately 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 page2. 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-doc→307→/integration/api-dochttps://intents.rozo.ai/→308→/bridgeNot changed, on purpose
All 46 sitemap URLs return 200 with
index, followand correct self-referencing canonicals. The sitemap is auto-generated by GitBook fromSUMMARY.mdand 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 force301.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
🤖 Generated with Claude Code