This repository has been archived by the owner on Feb 25, 2022. It is now read-only.
sitemap should not return an empty file if indexing isn't configured #304
Labels
bug
Something isn't working
Currently, the sitemap is returned from a static file
sitemap.xml
in the document root, which again ESincludes dynamically generated url sets. If indexing isn't configuring in that project (i.e. no `helix-query.yaml present), an empty list is returned. This is bad, since it e.g. makes Google believe that the site is empty. If a 404 is returned instead, Google will crawl the site manually.Idea: in
robots.txt
, use the propertySitemap
and point it to/cgi-bin/sitemap.js
instead.Or: in our fastly configuration, redirect
/sitemap.xml
to/cgi-bin/sitemap.js
The text was updated successfully, but these errors were encountered: