o / sitemap-php

Library for generating Google sitemap XML files
MIT License
300 stars 177 forks source link

Change First Sitemap File to sitemap.xml #2

Closed mkly closed 11 years ago

mkly commented 11 years ago

Change first sitemap file from sitemap-1.xml to sitemap.xml

This is for the benefit of sites that have less than 50,000 pages and will only have one sitemap file

mkly commented 11 years ago

Thanks for the useful library. I made a change that created the first sitemap page to not have a number. So instead of sitemap-0.xml it would only be sitemap.xml.

Feel free to close this if you don't want it. Just figured I would share in case you found it useful.

o commented 11 years ago

Hi Mike,

I'd tested, it works like a charm. I'll make little changes to README.md about this changes.

Merged, thanks!

o commented 11 years ago

Ping @evert,

This patch might be useful for your fork.

mkly commented 11 years ago

Glad to hear you found it useful.

evert commented 11 years ago

Thanks for thinking of me! I just applied this patch