Google Sitemaps for big sites: splitting the sitemap into multiple files
Sitemaps are an important element of search engine optimization (SEO), in order to provide search engines an accurate outline of what content exists on your site. One of our client sites recently outgrew Google's sitemap URL limit. Instead of removing content from the sitemap, we implemented a simple solution of using a sitemap index to reference multiple sitemap files.
By default, Google allows a single sitemap file to reference up to 50,000 URLs (and be up to 50mb in file size, uncompressed). This limit, however, is only enforced per file.
The simplest and cleanest way to build your sitemap if you have more than 50,000 URLs to reference is to use a sitemap index, whose only role is to list sitemap files.
<?xml version="1.0" encoding="UTF-8"?> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc>http://www.example.com/sitemap1.xml</loc> <lastmod>2012-01-01T11:11:11+00:00</lastmod> </sitemap> <sitemap> <loc>http://www.example.com/sitemap2.xml</loc> <lastmod>2012-01-01T11:11:11+00:00</lastmod> </sitemap> </sitemapindex>
Once your sitemap index is built and submitted to Google, the linked sitemaps will automatically start to be crawled.
There is a limit of 50,000 sitemaps per index, so the total limit of URLs per sitemap index file is 2,500,000,000. This should be enough for most sites, but if not, you can submit up to 500 index files!
Commentsblog comments powered by Disqus
Hi, we're Mugo Web - Nice to meet you!
We're a group of web experts who solve complex web problems.Learn more about us »
- Business solutions (71)
- Case study (27)
- eZ Publish add-ons (21)
- eZ Publish community (11)
- eZ Publish development tips (66)
- Front-end development (3)
- Productivity tools (16)
- Site performance (12)
- User experience (32)
- Web accessibility (14)
- Web solutions (68)
- Work at Mugo (11)
Yes - we can do that.
Many years of experience with complex websites allows us to offer total solutions.Learn more about what we can do »
We love our clients (and they love us too)
We've solved problems across North America and around the world.Learn more about what we've done »
We tweet too
Follow us on Twitter for the latest Mugo happenings