Skip to content

fix: unblock sitemap fetching in robots.txt#5848

Merged
idoshamun merged 1 commit intomainfrom
fix/robots-txt-sitemaps
Apr 12, 2026
Merged

fix: unblock sitemap fetching in robots.txt#5848
idoshamun merged 1 commit intomainfrom
fix/robots-txt-sitemaps

Conversation

@idoshamun
Copy link
Copy Markdown
Member

@idoshamun idoshamun commented Apr 12, 2026

Summary

  • Replace broad Disallow: /api/ with specific Disallow: /api/r/ (redirector only)
  • Add API sitemap index as second Sitemap: directive
  • The broad /api/ disallow was preventing Google from fetching sitemaps at /api/sitemaps/

Context

All API sitemaps show "Couldn't fetch" in Google Search Console. The Disallow: /api/ rule was originally added to prevent redirector pages from being indexed, but it also blocks sitemap fetching. Narrowing it to /api/r/ keeps the redirector blocked while unblocking sitemaps.

Companion PR: dailydotdev/daily-api#3785

Test plan

  • Verify Google Search Console shows sitemaps as fetchable after deploy
  • Verify /api/r/ URLs are still blocked by robots.txt

Preview domain

https://fix-robots-txt-sitemaps.preview.app.daily.dev

Replace broad Disallow: /api/ with specific Disallow: /api/r/ for the
redirector. The broad rule was preventing Google from fetching sitemaps
at /api/sitemaps/ despite the Allow override. Also add the API sitemap
index as a second Sitemap directive.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Apr 12, 2026 11:33am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Apr 12, 2026 11:33am

Request Review

@idoshamun idoshamun merged commit 10ff975 into main Apr 12, 2026
10 of 13 checks passed
@idoshamun idoshamun deleted the fix/robots-txt-sitemaps branch April 12, 2026 11:33
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