Skip to content
This repository has been archived by the owner on Dec 24, 2019. It is now read-only.

How to create a sitemap file index with multiple sitemaps? #7

Open
oscarotero opened this issue May 27, 2015 · 4 comments
Open

How to create a sitemap file index with multiple sitemaps? #7

oscarotero opened this issue May 27, 2015 · 4 comments

Comments

@oscarotero
Copy link

I'd like to do something like this: https://support.google.com/webmasters/answer/75712?rd=1
Is there any way to do it with this library? I mean something like this:

$sitemap = new Sitemap('http://mysite.com');
$sitemap->addItem('page1.html');

$sitemap->addSitemap('blog');
$sitemap->addItem('blog/page1.html');

//this should create sitemap-index.xml with sitemap.xml and sitemap-blog.xml
$sitemap->createSitemapIndex('http:://mysite.com/', 'Today');
@babeuloula
Copy link

+1

1 similar comment
@rockymontana
Copy link

+1

@MadeNade
Copy link

MadeNade commented Jul 3, 2016

+1 really good Q.

@tvdsluijs
Copy link

yes yes yes !!! pleaaaaase!!!!!!

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

No branches or pull requests

5 participants