SEO remediation: canonical host redirect, noindex thin compare pages, sitemap lastmod#15
Merged
Merged
Conversation
- 301 www.unclouded.app and plain-http to https://unclouded.app (Google was indexing www duplicates; canonical tags alone are only a hint) - 301 trailing-slash normalization instead of the router's 307 - X-Robots-Tag: noindex on /compare/ pages and 410 the comparisons sitemap: 25k thin auto-generated pages triggered site-wide quality suppression (GSC: 9.6k 'Crawled - currently not indexed', 5 pages left indexed by mid-May) - remove Crawl-delay from robots.txt (ignored by Google, throttles Bing) - add <lastmod> to app and alternatives sitemaps
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
unclouded | e8b07a4 | Commit Preview URL Branch Preview URL |
Jul 05 2026, 12:09 AM |
Some seeded rows have updated_at values that produce an Invalid Date; toISOString() threw RangeError and 500'd the app/alternatives sitemaps.
The seed import wrote ISO strings into the integer updated_at column, so drizzle's timestamp mapper produced Invalid Date for every row and sitemaps rendered without lastmod. Select the raw value for sitemaps, normalize ISO strings and epoch seconds/millis, and make the import write epoch seconds to match the schema going forward.
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.
Why
Google deindexed the site almost entirely: ~9,000 pages indexed mid-April → 5 pages by mid-May (GSC coverage export). Two root causes:
www.unclouded.appand plainhttp://served200instead of redirecting. Google indexed www duplicates (visible in live search results); canonical<link>tags are only a hint./compare/pages (83% of all sitemap URLs) with no unique content. GSC shows 9,658 pages "Crawled - currently not indexed" with failed validation — the signature of a site-wide quality suppression.Changes
https://unclouded.appin the worker (scoped to prod hostnames; dev and workers.dev untouched)X-Robots-Tag: noindexon/compare/pages; comparisons sitemap now returns 410 and is removed from the sitemap index (pages remain usable in-app)Crawl-delay: 10from robots.txt (ignored by Google, throttled Bing)<lastmod>in app + alternatives sitemaps (KV cache keys bumped to v2)Verification
pnpm build(vite build + tsc) passes, biome clean on changed files🤖 Generated with Claude Code