Skip to content

fix(seo): return 410 for 6 dead /best-* URLs (BUY-56945)#182

Open
BuyWhere wants to merge 3 commits into
mainfrom
fix-buy-56945
Open

fix(seo): return 410 for 6 dead /best-* URLs (BUY-56945)#182
BuyWhere wants to merge 3 commits into
mainfrom
fix-buy-56945

Conversation

@BuyWhere

Copy link
Copy Markdown
Owner

Problem

Six /best-* URLs return HTTP 404:

  • /best-airpods-us
  • /best-macbook-us
  • /best-robot-vacuum-us
  • /best-iphone-us
  • /best-ipad-us
  • /best-vacuum-us

These URLs never had blog posts. Their /blog/ counterparts already return 410 Gone.

Solution

Add these 6 slugs to a new DEAD_BEST_SLUGS constant and modify the /best-* handler in middleware to return __GONE__ (410) for these URLs.

This ensures clean de-indexing by search engines, matching the behavior already applied to their /blog/ counterparts.

Testing

After deployment, these URLs should return HTTP 410 instead of 404.

Fixes BUY-56945

Oracle (CDO) and others added 3 commits June 24, 2026 17:10
- Add DEAD_BEST_SLUGS constant with 6 URLs that never had blog posts
- Modify /best-* handler to return __GONE__ for these URLs
- Fixes BUY-56945: /best-airpods-us, /best-macbook-us, /best-robot-vacuum-us,
  /best-iphone-us, /best-ipad-us, /best-vacuum-us now return 410 instead of 404
…es (BUY-56963)

Tier 1 (page 1-2 positions):
- /best-robot-vacuums-2026: front-load 'Roomba Sale 2026', add 00 savings, retailer names
- /best-smart-home-us: add 2026, name retailers upfront, 'in stock now' CTA

Tier 2 (page 3-5 positions):
- /best-budget-tvs-us: add 'Buy', 'In Stock', 'Where to buy' for transactional intent
- /best-gaming-laptops-us: cleaner format, 'Compare Deals' CTA
- /best-gaming-laptop-singapore: 'SGD Deals', local retailer focus

Tier 3 (positions 50+):
- /best-android-tablets-us: add 'Deals', retailer names
- /best-bluetooth-speakers-us: add 'Top Deals', retailer names
- /best-pressure-washing-machines-us: add 'Deals', retailer names

Also updated refreshedLabel to June 24, 2026 for robot vacuums page.

Trailing slash redirect (308) already live for all pages.
@BuyWhere

Copy link
Copy Markdown
Owner Author

Rebased on latest main — resolved two trivial copy-text merge conflicts in seo-landing-pages.ts (Roomba Sale 2026 description wording and Smart Home description wording). Both resolved toward main's latest revisions. Middleware fix (DEAD_BEST_SLUGS → 410 Gone for 6 dead /best-* URLs) is intact. PR is now CLEAN and MERGEABLE.

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