Seo/pumpfun legacy url 301s - #242
Merged
Merged
Conversation
plugin-client-redirects emits a real HTML page for every old URL: HTTP 200, a meta-refresh, a *relative* canonical, and an EMPTY <title>. A 200 with no title is an indexable duplicate, so each of these competes with the page it is supposed to point at. Verified live 2026-08-11 — all return 200 with <title></title>: /docs/examples/Solana/Pump-Fun-API/ /docs/examples/Solana/Pump-Fun-Marketcap-Bonding-Curve-API/ /docs/examples/Solana/pump-swap-api/ /docs/examples/dextrades/Pump-Fun-API/ /docs/blockchain/Solana/Pump-Fun-API/ That is nine indexable URLs for a four-page cluster, and Google is using them. On 2026-08-09, GSC recorded /docs/examples/Solana/Pump-Fun-API/ at position 3 for "pumpfun api" while the canonical page sat at 13.4 the same day — the soft-redirect stub outranking the real page. Adds one regex location returning real 301s. The client-side redirects stay as a fallback for any request that bypasses nginx. Loop safety, checked exhaustively before committing: the capture group matches only bare page names, never a "Pumpfun/<page>" segment, so the redirect targets cannot re-enter the block. Verified 10 legacy paths redirect, 10 canonical and neighbouring paths untouched, 0 loops. The existing ^~ /docs/blockchain/Solana/PumpFun block does not shadow these — "PumpFun" is not a prefix of "Pump-Fun-API". NOT verified: nginx syntax. Neither nginx nor docker is available in the environment this was written in, so `nginx -t` could not be run. The following commit adds that check to CI. Do not merge until it passes — a bad config here does not fail the build, it fails container start. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
nginx/default.conf is copied into the runtime image by the Dockerfile but was not checked anywhere in CI, which only runs `npm run build` and the link checker. A syntax error therefore survives the build and surfaces at container start, taking the docs offline on deploy. Runs `nginx -t` against the same nginx:stable-alpine the image is built from. 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.
No description provided.