You are here:  » Split sitemap (> 50,000 products)

Support Forum



Split sitemap (> 50,000 products)

Submitted by suffolk66 on Mon, 2012-03-12 10:36 in

I've searched the forum but can't find an answer to the problem of having >50,000 products in a sitemap. Google's said that 'Your Sitemap contains too many URLs. Please create multiple Sitemaps with up to 50000 URLs' so how do I split the sitemap into more than 2 files?

Submitted by support on Mon, 2012-03-12 10:44

Hi,

That's strange - the script should be limiting each individual sitemap to 50,000 entries in accordance with the specification. The sitemaps are generated per filename; and if there are greater than 50,000 products from a single file then multiple entries are created in the sitemap index (which is what is returned by sitemap.php) with ?start=....

One thing to try would be to lower the limit in use, for example to 25,000. You can do this by changing line 8 of sitemap.php as follows:

  $limit = 25000;

If still reporting too many URLs if you could let me know the installation URL (I'll remove before publishing your reply) I'll check it out further for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by TWDesigns on Mon, 2012-03-12 15:06

That is odd as I have one with 600,000 products and google accepted over 200,000 so far.

Submitted by support on Mon, 2012-03-12 15:24

Hi Tommy,

The site was using a different sitemap script from an early forum post; latest distribution version is working fine...

Cheers,
David.
--
PriceTapestry.com