Skip to content

fix(seo): GSC 404 follow-ups — rebates root + /institutional target + slash variants (Codex P2 on #565)#566

Merged
san-npm merged 1 commit into
mainfrom
fix/gsc-404-followups
Jun 12, 2026
Merged

fix(seo): GSC 404 follow-ups — rebates root + /institutional target + slash variants (Codex P2 on #565)#566
san-npm merged 1 commit into
mainfrom
fix/gsc-404-followups

Conversation

@san-npm

@san-npm san-npm commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Resolves the three Codex P2s on #565:

  1. rebates.ophis.fi/ still 404'd. robots.txt only covered /robots.txt; the root fell through to the 404 handler, and Disallow: / blocked crawlers from seeing any fix on /. Now: GET /301 to docs.ophis.fi/affiliate, and robots allows exactly / (Allow: /$ beats Disallow: / by longest-match) so the redirect is crawlable while /tier/API stay out of the index.
  2. /institutional pointed at the SPA shell. RoutesApp's InstitutionalRedirect does window.location → business.ophis.fi, so a non-JS crawler landed on the swap shell. Now docs 301 → https://business.ophis.fi (crawlable host).
  3. Trailing-slash variants. CF Pages treats /x and /x/ as distinct sources → added /institutional/ + /brand/ (mirrors /api+/api/). /brand keeps swap.ophis.fi/#/brand (real HashRouter page).

Verified: indexer typecheck green; _redirects rules valid (3-field). Post-deploy I'll confirm rebates.ophis.fi/ → 301, docs/institutional → business, slash variants → 301.

🤖 Generated with Claude Code

…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>
@san-npm san-npm merged commit 968464b into main Jun 12, 2026
18 checks passed
@san-npm san-npm deleted the fix/gsc-404-followups branch June 12, 2026 10:32
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