I’ve attempted to submit a sitemap in google search console for a site that has a custom domain, when submitting I receive a couldn't fetch
error, however if I submit the sitemap under the raw or canister Id url the sitemap returns success
. Could this possibly be a service worker issue?
I can confirm that submitting a sitemap.xml
to the Google Search Console using a custom domain registered with the boundary nodes works out.
Do you use your own infrastructure?
Awesome, thank you for confirming.
We’re not using any of our own infrastructure, the property was registered using the custom domains guide. I suspected it could be service worker related because when navigating to the sitemap in an incognito window I received the service worker loader, but seeing as you’ve managed to get one accepted it has to be something else…
I dont think it’s related to the service worker because de boundary nodes redirect crawlers to raw if needed as in this case.
You have the sitemap.xml at the root ? If not it is correctly linked with a meta tag ? Do you also have added the link to the xml file in robots txt (not sure it’s needed but I do) ?
Yes, I have the sitemap.xml hosted at the root, and its linked in the robots.txt. It’s strange that it works for the canister Id urls within search console, but not the custom url.
Hi @Mitch,
it’s a bit hard to debug without working on the concrete example. Could you please share the canister-id and custom domain with us (per DM if that’s better for you).
Thanks a lot!