I am having thousands of URLs in the website, If I put all URLs in sitemap.xml it's getting too large in size. There is some suggestion to split those URLs into different files and referring in main sitemap.xml


<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

And in the reference file detailpages-sitemap.xml defining URLs

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> 
<loc> https://www.example.com/detail/Universal-Studios-Hollywood/</loc>

Is this is a better way to implement it or is there an even better method?

  • 3
    Sitemaps have almost nothing to do with SEO no matter how they are structured.. They can get Googlebot to crawl all your pages, but they don't factor into whether Google chooses to index your pages or not. Sitemaps don't have anything to do with how well your pages rank. See The Sitemap Paradox Commented Jul 5, 2020 at 11:20

1 Answer 1


It's best to split the sitemap by your website structure, example category pages, product pages, blog, etc, this way you can easily debug it if anything goes wrong.

Limit a single sitemap to 50MB (uncompressed) and 50,000 URLs. If you have a larger file or more URLs, you will have to break your list into multiple sitemaps.

Make sure there isn't any duplicate or unnecessary URLs on the sitemap.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.