Generates the sitemap index from the sitemap part avaible in the folder.
public static generateSitemapIndex ( string $folder, string $baseUrl, string $pattern = 'sitemap*.xml', string $filename = 'sitemap.xml' ) | ||
$folder | string | A folder to write sitemap index |
$baseUrl | string | A base URL |
$pattern | string | A sitemap pattern, optional |
$filename | string | A sitemap file name, optional |