Mobile app version of vmapp.org
Login or Join
BetL925

: 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

@BetL925

Posted in: #Geolocation #Internationalization #Multilingual #RobotsTxt #XmlSitemap

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gretchen104

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?

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme