How to Generate Compressed XML Sitemaps Using PHP
So you figured your 5 mb-and-growing dynamically generated XML sitemap has been a major bandwidth hog and are scared it might bring your website on its knees; or maybe you wanna play nice with Google by serving it a fast loading compressed XML sitemap. Whatever be the reason, you are here to find out how to compress your xml sitemap and output it as a .gz file, something like sitemap.xml.gz.
Compressed XML Sitemap ...