Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Sitemap: entries in robots.txt?

I have been searching around using Google but I can't find an answer to this question.

A robots.txt file can contain the following line:

Sitemap: http://www.mysite.com/sitemapindex.xml 

but is it possible to specify multiple sitemap index files in the robots.txt and have the search engines recognize that and crawl ALL of the sitemaps referenced in each sitemap index file? For example, will this work:

Sitemap: http://www.mysite.com/sitemapindex1.xml  Sitemap: http://www.mysite.com/sitemapindex2.xml  Sitemap: http://www.mysite.com/sitemapindex3.xml 
like image 577
user306942 Avatar asked Apr 07 '10 16:04

user306942


People also ask

Can robots txt have multiple sitemaps?

Yes it is possible to list multiple sitemap-files within robots. txt , see as well in the sitemap.org site: You can specify more than one Sitemap file per robots.

Is it good to add sitemap in robots txt?

XML sitemaps can also contain additional information about each URL, in the form of meta data. And just like robots. txt, an XML sitemap is a must-have. It's not only important to make sure search engine bots can discover all of your pages, but also to help them understand the importance of your pages.

Why do I have multiple sitemaps?

Why You Need Multiple Sitemaps. The main reason why you should consider adding more than one sitemaps is not only to minimize crowding of links, but also to ensure that all pages are crawled and indexed by the search engines. Multiple sitemaps are very efficient in classifying and categorizing the content in a website.

Can I have multiple sitemaps?

You can create a single sitemap that includes URLs from all sites or you can create one or more separate sitemaps for each site.


1 Answers

Yes it is possible to have more than one sitemap-index-file:

You can have more than one Sitemap index file.

Highlight by me.

Yes it is possible to list multiple sitemap-files within robots.txt, see as well in the sitemap.org site:

You can specify more than one Sitemap file per robots.txt file.

Sitemap: http://www.example.com/sitemap-host1.xml  Sitemap: http://www.example.com/sitemap-host2.xml 

Highlight by me, this can not be misread I'd say, so simply spoken, this can be done.

This is also necessary for cross-submits, for which btw. the robots.txt has been chosen.

Btw Google, Yahoo and Bing, all are members of sitemaps.org:

Sitemap 0.90 is offered under the terms of the Attribution-ShareAlike Creative Commons License and has wide adoption, including support from Google, Yahoo!, and Microsoft.

So you can rest assured that your sitemap entries will be properly read by the search engine bots.

Submitting them via webmaster tools can not hurt either - as John Mueller commented.

like image 105
Miltan Chaudhury Avatar answered Sep 25 '22 13:09

Miltan Chaudhury