: Sitemaps: rel="alternate" hreflang="x" naming I'm creating a Sitemap for rel="alternate" hreflang="x", but no where in Google's guidelines do they mention how it should be named. Also can we reference
I'm creating a Sitemap for rel="alternate" hreflang="x", but no where in Google's guidelines do they mention how it should be named. Also can we reference it separately in the robots.txt file, or does it need to be in a sitemap_index file?
e.g
User-agent: *
Disallow: /private/
Sitemap: www.example/sitemap.xml Sitemap: www.example/rel=sitemap.xml
Any ideas?
More posts by @BetL925
1 Comments
Sorted by latest first Latest Oldest Best
The naming (which is also the location) of a sitemap is - contrary to what you state in your question - mentioned in the guidelines:
See Sitemap file location
Also the guidlines clearly say that you can specify more than one sitemap file in robots.txt:
You can specify more than one Sitemap file per robots.txt file.
Sitemap: www.example.com/sitemap-host1.xml
Sitemap: www.example.com/sitemap-host2.xml
Excerpt from Specifying the Sitemap location in your robots.txt file
BTW Sitemap index files are used in case your file grows larger (in terms of entry count, e.g. 50.000 -or- in terms of file-size e.g. 10MB (uncompressed)) or in case you have multiple hostnames in the URIs which requires you to have multiple files - one per hostname.
BTW, the following answer is related on Stackoverflow, but you need to ignore the accepted answer as it is not well researched (like the question itself):
Multiple SiteMap: entries in robots.txt?
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.