-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help: Sitemap file location #368
Comments
Hey, great question. I don't know in this instance, it's possible it does not adhere to the spec but it doesn't explicitly say about having alternative paths when using the root sitemap index file. No search engine has an issue with it to the best of my knowledge. The routes are setup like this due to how Nitro route matching works, we can't dynamically match routes such as I'm open to rolling the change back if it's causing any issues though. |
Thanks for your quick reply. I also can't tell if search engines do have any issues with this. Will get back if I can find any further information on this. |
I found a similar quote in the google docs:
So, if you ask me I would rather go with safe than sorry. But I don't know both how to verify how google really treats sitemaps not following this rule and what consequence a rollback on your side would have. |
Add the sitemap to google search console and it should tell you if there's an issues |
Hey Harlan. Can we revisit this? I, too, would like to be able to control where my sitemaps live. I can create a post-build script to move them out of |
I am considering rolling the initial change back and allowing people to put them wherever they find appropriate, give me a couple of days to decide. |
I'll avoid rolling back for now due to potential breaking changes for end users but you can easily change the multi-sitemap path using export default defineNuxtConfig({
sitemap: {
sitemapsPathPrefix: '/',
sitemaps: {
['sitemap-foo']: {}
}
}
}) I've added this to the docs as well. |
📚 What are you trying to do?
This is more of a question but an actual issue right now. Hope you can help me clarify things a bit.
While playing around with the multiple sitemaps feature, I noticed that the
path
of every sitemap entry is generated with a loc similar tohttps:example.com/__sitemap__/[my-sitemap-entry].xml
.A coworker pointed out that the location or path of the sitemap should be considered when using multiple sitemaps. Under https://www.sitemaps.org/protocol.html you can read about it. Basically it says:
So my question is: Isn't this contradicting with the default behavior that multiple sitemaps will always be generated with the
__sitemap__
path?🔍 What have you tried?
No response
ℹ️ Additional context
No response
The text was updated successfully, but these errors were encountered: