diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index f36d427..272692c 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -15,6 +15,10 @@ export default defineConfig({ devToolbar: { enabled: false }, redirects: { '/': '/en/', + // Bing/Yandex/IndexNow probe /sitemap.xml directly. Astro's sitemap + // integration emits sitemap-index.xml + sitemap-0.xml; add a 301 so + // either path resolves. Both are also referenced in robots.txt. + '/sitemap.xml': '/sitemap-index.xml', }, integrations: [ AstroPWA({ diff --git a/docs/public/robots.txt b/docs/public/robots.txt index 19f0a20..eeb2fa0 100644 --- a/docs/public/robots.txt +++ b/docs/public/robots.txt @@ -115,4 +115,9 @@ Allow: / Disallow: /api/ # ── Sitemaps ─────────────────────────────────────────────────────────────── +# /sitemap.xml is a 301 to /sitemap-index.xml (Astro emits the index +# automatically + one child sitemap-0.xml). Both URLs are listed so any +# crawler that probes either path lands on the same content. Bing's +# Webmaster Tools and IndexNow tend to look for /sitemap.xml literally. +Sitemap: https://nibiru-framework.com/sitemap.xml Sitemap: https://nibiru-framework.com/sitemap-index.xml