Gossamer Forum
Home : General : Internet Technologies :

Google SiteMaps - using more than one?

Quote Reply
Google SiteMaps - using more than one?
Hi,

Does anyone know if you can specify more than one sitemap URL?

For example, atm I have:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/siteindex.xsd"> <sitemap>
<loc>http://domain.com/directory/sitemap_index_p1.xml.gz</loc>
</sitemap>
</sitemapindex>

..will it work with something like this:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/siteindex.xsd"> <sitemap>
<loc>http://domain.com/directory/sitemap_index_p1.xml.gz</loc>
<loc>http://domain.com/directory/another_sitemap.xml</loc>
<loc>http://domain.com/directory/another_sitemap2.xml</loc>

</sitemap>
</sitemapindex>

..or is that invalid syntax? I'm trying to split up the different sections of the site, into 3 different .xml files (the GLinks one gets made in .gz,cos it has the potential to get quite large =))

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Google SiteMaps - using more than one? In reply to
Yes it works

Currently I have sitemap index file with more than 50 sitemaps in, and google love it ;)

But the format is liitle different:

Code:
<?xml version='1.0' encoding='UTF-8'?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd">
<sitemap>
<loc>http://www.domain.com/sitemap-1.xml</loc>
<lastmod>2007-12-11T16:42:09+00:00</lastmod>
</sitemap>
<sitemap>
<loc>http://www.domain.com/sitemap-2.xml</loc>
<lastmod>2007-12-11T16:44:01+00:00</lastmod>
</sitemap>
</sitemapindex>

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins

Last edited by:

eupos: Apr 14, 2008, 3:31 AM
Quote Reply
Re: [eupos] Google SiteMaps - using more than one? In reply to
Hi,

Thanks - that looks perfect, I'll give it a go Smile

Thanks again.

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Google SiteMaps - using more than one? In reply to
Hey Andy,

here you go

Code:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="gss.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>http://www.domain.com/sitemap.xml.gz</loc><lastmod>2008-04-10T21:35:15+00:00</lastmod></sitemap>
<sitemap><loc>http://www.domain.com/sitemap2.xml.gz</loc><lastmod>2008-04-10T21:35:15+00:00</lastmod></sitemap>
<sitemap><loc>http://www.domain.com/sitemap3.xml.gz</loc><lastmod>2008-04-10T21:35:15+00:00</lastmod></sitemap>
<sitemap><loc>http://www.domain.com/sitemap4.xml.gz</loc><lastmod>2008-04-10T21:35:15+00:00</lastmod></sitemap>
</sitemapindex>


Sandra Roussel
Chonsa Group Design - Fresh Start Housing

Last edited by:

SandraR: Apr 16, 2008, 11:43 AM
Quote Reply
Re: [SandraR] Google SiteMaps - using more than one? In reply to
Thanks :)