The Sitemap has certain limitations. For example, it cannot contain more than 50,000 URLs and cannot be bigger than 10 MB. This is why if you plan to create a website with multiple subdirectories and Sitemaps, you will have to use Sitemap Index.

The Sitemap index allows you to include several Sitemap files under one file called Sitemap index. It uses almost the same syntax but instead of including your pages URLs, you will have to add the URLs to your Sitemaps.

Below, you can find a sample code of a Sitemap index.

<?xml version=”1.0″ encoding=”UTF-8″?>
<sitemapindex xmlns=”http://www.sitemaps.org/schemas/sitemap/0.9″>
<sitemap>
<loc>http://www.domain.com/sitemap1.xml.gz</loc>
<lastmod>2004-10-01T18:23:17+00:00</lastmod>
</sitemap>
<sitemap>
<loc>http://www.domain.com/sitemap2.xml.gz</loc>
<lastmod>2005-01-01</lastmod>
</sitemap>
</sitemapindex>

As you can see the Sitemap index file uses the following XML tags:

* loc
* lastmod
* sitemap
* sitemapindex

The <loc> and the <lasmod> tags are basically the same as in the normal Sitemap file. The <sitemap> tag encapsulates information about an individual Sitemap. The <sitemapindex> tag provides information about all of the Sitemaps in the file.

Be advised that the Sitemap files can be only files located under the same domain or subdomain and should be UTF-8 encoded as well.

If You Need  My Help While Creating A Sitemap For Your Website Then Feel Free To Ask Me I will Help You Out.

Thanks.


Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • DotNetKicks
  • eKudos
  • email
  • LinkedIn
  • Live
  • MSN Reporter
  • MySpace
  • Netvibes
  • Netvouz
  • NewsVine
  • PDF
  • Ping.fm
  • Propeller
  • Reddit
  • RSS
  • Slashdot
  • StumbleUpon
  • Technorati
  • Yahoo! Bookmarks
  • Yahoo! Buzz