fix(seo): GSC 404 follow-ups — rebates root + /institutional target + slash variants (Codex P2 on #565)#566
Merged
Merged
Conversation
…lash variants (Codex P2 on #565) Three Codex P2s on #565: 1. rebates.ophis.fi/ still 404'd: robots.txt only served /robots.txt; the root fell through to the 404 handler, and Disallow:/ blocked crawlers from ever seeing a fix on /. Now: GET / -> 301 to docs.ophis.fi/affiliate (the public rebate explainer), and robots ALLOWS exactly / (Allow:/$ wins longest-match over Disallow:/) so the redirect is crawlable while API/tier paths stay out. 2. /institutional pointed at the swap SPA shell: RoutesApp's InstitutionalRedirect does window.location -> business.ophis.fi, so non-JS crawlers landed wrong. 301 docs/institutional straight to https://business.ophis.fi (crawlable host). 3. trailing-slash variants: CF Pages treats /x and /x/ as distinct sources, so add /institutional/ and /brand/ (mirrors the /api + /api/ pair). /brand keeps swap.ophis.fi/#/brand (real HashRouter page, no business equiv). rebate-indexer typecheck green; _redirects rules valid. Co-Authored-By: Claude Opus 4.8 <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.
Resolves the three Codex P2s on #565:
/robots.txt; the root fell through to the 404 handler, andDisallow: /blocked crawlers from seeing any fix on/. Now:GET /→ 301 to docs.ophis.fi/affiliate, and robots allows exactly/(Allow: /$beatsDisallow: /by longest-match) so the redirect is crawlable while/tier/API stay out of the index.RoutesApp'sInstitutionalRedirectdoeswindow.location → business.ophis.fi, so a non-JS crawler landed on the swap shell. Now docs 301 → https://business.ophis.fi (crawlable host)./xand/x/as distinct sources → added/institutional/+/brand/(mirrors/api+/api/)./brandkeepsswap.ophis.fi/#/brand(real HashRouter page).Verified: indexer typecheck green;
_redirectsrules valid (3-field). Post-deploy I'll confirmrebates.ophis.fi/→ 301,docs/institutional→ business, slash variants → 301.🤖 Generated with Claude Code