multiple sitemap.xml
Permalink
Not sure if this is really a C5 issue, but it may get some interesting feedback.
I am currently running a number of C5 sites with C5 as the main site, but I also add a blog directory where I install WordPress. I find that it is nocie to integrate them together and while C5 has added blog pages, I still like WP for that.
The question I have then is WP creates one sitemap.xml in its root directory (and you can change the name/ location) but C5 wants to drop it into the root of the web site as sitemap.xml. I saw in the generate_sitemap.php, file that I could change the name, but after I changed it and re-ran the build sitemap the name did not change was still the same. Should it?
My main question is.. can I direct google and other searcher with just including both sitemap.xml locations in the robots.txt... or do I also need a "master" sitemap.xml that has code that then referes to the 2 different sitemaps?
Thanks for any feedback from an alsways helpful group..
I am currently running a number of C5 sites with C5 as the main site, but I also add a blog directory where I install WordPress. I find that it is nocie to integrate them together and while C5 has added blog pages, I still like WP for that.
The question I have then is WP creates one sitemap.xml in its root directory (and you can change the name/ location) but C5 wants to drop it into the root of the web site as sitemap.xml. I saw in the generate_sitemap.php, file that I could change the name, but after I changed it and re-ran the build sitemap the name did not change was still the same. Should it?
My main question is.. can I direct google and other searcher with just including both sitemap.xml locations in the robots.txt... or do I also need a "master" sitemap.xml that has code that then referes to the 2 different sitemaps?
Thanks for any feedback from an alsways helpful group..
got me thinking so I double-checked.
Use sitemap index - format is:
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://www.example.com/sitemap1.xml.gz</loc>
<lastmod>2004-10-01T18:23:17+00:00</lastmod>
</sitemap>
<sitemap>
<loc>http://www.example.com/sitemap2.xml.gz</loc>
<lastmod>2005-01-01</lastmod>
</sitemap>
</sitemapindex>
Like I said before - add this one to your webmaster tools account and the linked ones are automatically added...
Use sitemap index - format is:
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>http://www.example.com/sitemap1.xml.gz</loc>
<lastmod>2004-10-01T18:23:17+00:00</lastmod>
</sitemap>
<sitemap>
<loc>http://www.example.com/sitemap2.xml.gz</loc>
<lastmod>2005-01-01</lastmod>
</sitemap>
</sitemapindex>
Like I said before - add this one to your webmaster tools account and the linked ones are automatically added...
Thanks for the info..
How important are the dates? can I leave them off?
Main reason is I would like to set this file up and forget it..
How important are the dates? can I leave them off?
Main reason is I would like to set this file up and forget it..
when I've done this I've created a sitemapindex.xml which contains links to the various sitemaps.
Registering the sitemapindex.xml in Google sitemaps gets the other sitemaps pulled in too.
Not sure if you have to do this bor if it is just something I got in the habit of doing and do as routine...