: Can a sitemap index file point to sitemaps in another directory? I am creating multiple sitemaps for a site, and for the sake of organization I would like to put these sitemaps into their
I am creating multiple sitemaps for a site, and for the sake of organization I would like to put these sitemaps into their own directory (of course the sitemap.xml file will be in the root site directory). Is this possible? I've looked through the protocol and it doesn't address this issue.
UPDATE
I did not clearly state my issue, which is this. If I have a sitemap index, can the sitemaps listed in the index be located in a subdirectory, such as www.example.com/sub1/sub2/sitemap2.xml? Sitemap2.xml does not include paths that is only for /sub2/. Sitemap2.xml might contains links such as www.example.com/FooBar.
More posts by @Murray432
1 Comments
Sorted by latest first Latest Oldest Best
Yes. It used to be required to have your XML sitemaps in your root directory but it has since been changed to allow you to place your sitemaps within subdirectories of your choosing.
From www.sitemaps.org/faq.html#faq_sitemap_location
Q: Where do I place my Sitemap?
It is strongly recommended that you
place your Sitemap at the root directory of your HTML server; that is,
place it at example.com/sitemap.xml. In some situations, you
may want to produce different Sitemaps for different paths on your
site — e.g., if security permissions in your organization
compartmentalize write access to different directories. We assume that
if you have the permission to upload
example.com/path/sitemap.xml, you also have permission to
report metadata under example.com/path/. All URLs listed in the
Sitemap must reside on the same host as the Sitemap. For instance, if
the Sitemap is located at www.example.com/sitemap.xml, it can't
include URLs from subdomain.example.com. If the Sitemap is
located at www.example.com/myfolder/sitemap.xml, it can't
include URLs from www.example.com.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.