Multiple Sitemap: entries in robots.txt?

前端 未结 5 474
青春惊慌失措
青春惊慌失措 2021-02-02 06:45

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:/         


        
5条回答
  •  执念已碎
    2021-02-02 07:27

    If your sitemap is over 10 MB (uncompressed) or has more than 50 000 entries Google requires that you use multiple sitemaps bundled with a Sitemap Index File.

    • Using Sitemap index files (to group multiple sitemap files)

    In your robots.txt point to a sitemap index which should look like this:

    
    
       
          http://www.example.com/sitemap1.xml.gz
          2012-10-01T18:23:17+00:00
       
       
          http://www.example.com/sitemap2.xml.gz
          2012-01-01
       
    
    

提交回复
热议问题