Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sitemap limits checking is missing #43

Open
ghost opened this issue Sep 9, 2017 · 6 comments
Open

Sitemap limits checking is missing #43

ghost opened this issue Sep 9, 2017 · 6 comments

Comments

@ghost
Copy link

ghost commented Sep 9, 2017

Sitemaps have limits and they should be checked:

  • max size 50MB
  • max 50,000 URLs

If size limit is exceeded, sitemap has to be splitted into multiple sitemaps with a sitemap index file.

@vezaynk
Copy link
Owner

vezaynk commented Sep 9, 2017

There's probably a creative way to determine the size of the sitemap file up-to-this-point without querying the file system after each url.

The 50000 max urls is quite easy to implement.

@ghost
Copy link
Author

ghost commented Sep 9, 2017

You could also make the sitemap disregarding the limits, then check the limits and if they are reached, split the sitemap.

@vezaynk
Copy link
Owner

vezaynk commented Sep 9, 2017

That's also a way.

@efimBistrov
Copy link

Is there any ability added for sitemap limits at the moment?

@vezaynk
Copy link
Owner

vezaynk commented Jun 5, 2019

There is not. It's a relatively straight-forward feature which I don't have time to tackle at the moment.
I'm just fixing bugs and merging PRs lately.

If you are uncomfortable writing PHP in order to add it to the project, writing a separate program to post-process the sitemaps is also an option.

@olariuromeo
Copy link

olariuromeo commented Aug 4, 2022

I have 794,769 categories and about 3,617,181 pages in my website, how can sitemaps be splitted into multiple sitemaps? also google only receives the sitemap in xml.gz format so your script is not very useful except for very small sites

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants