Introduction :

In the previous post i explained about "How to add your Blogspot blog to Google Webmaster Tools" On that post i briefly explained about the value of Sitemap , Without a Sitemap Google Search Engine can't Index your pages on the search result . On this topic we will discuss about "How to create your own website Sitemap using Sitemap Protocol" .

How To Create My Own Sitemap Using Sitemap Protocol :

Sitemap is a Xml file , That consist step by step process . Here i will show you a demo  . The Xml sitemap must start with the tag that i added below this text .

<?xml version="1.0" encoding="UTF-8"?> 
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

Sitemap also have and opening tag and a closing tag like the following :

<sitemap>    </sitemap>

Inside this tag we need to enter the entire data of our web site . Now follow the next step :
Example : 

  <sitemap>
      <loc>http://www.example.com/sitemap1.xml.gz</loc>
      <lastmod>2004-10-01T18:23:17+00:00</lastmod>
   </sitemap>

Here the "<loc>" Used to point out the destination of your sub Sitemaps from the Paranet Sitemap .
Here the "<lastmod>" Used to point out the Date and Time of the last updates of that Sub Sitemap .

You can also use the "<loc>" Tag to point out the page's of your website like the following .

 <sitemap>
      <loc>http://www.example.com/page1.html</loc>
      <lastmod>2004-10-01T18:23:17+00:00</lastmod>
   </sitemap>

You can also set priority for your pages using the following tag .

 <priority>

Example with "<priority>" Tag :

 <sitemap>
      <loc>http://www.example.com/page1.html</loc>
      <lastmod>2004-10-01T18:23:17+00:00</lastmod>     
      <priority>0.8</priority>
   </sitemap>

You can set Frequency for your xml file like the following method :

 <sitemap>
      <loc>http://www.example.com/page1.html</loc>
      <lastmod>2004-10-01T18:23:17+00:00</lastmod>
      <priority>0.8</priority>
      <changefreq>monthly</changefreq>
   </sitemap>

The use of "<changefreq>" is to inform the Search Engine the changes will occur in "Monthly","Weekly" like that .

Final Example With All Tags :

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <url>
      <loc>http://www.example.com/</loc>
      <lastmod>2005-01-01</lastmod>
      <changefreq>monthly</changefreq>
      <priority>0.8</priority>
   </url>
   <url>
      <loc>http://www.example.com/catalog?item=12&amp;desc=vacation_hawaii</loc>
      <changefreq>weekly</changefreq>
   </url>
   <url>
      <loc>http://www.example.com/catalog?item=73&amp;desc=vacation_new_zealand</loc>
      <lastmod>2004-12-23</lastmod>
      <changefreq>weekly</changefreq>
   </url>
   <url>
      <loc>http://www.example.com/catalog?item=74&amp;desc=vacation_newfoundland</loc>
      <lastmod>2004-12-23T18:00:15+00:00</lastmod>
      <priority>0.3</priority>
   </url>
   <url>
      <loc>http://www.example.com/catalog?item=83&amp;desc=vacation_usa</loc>
      <lastmod>2004-11-23</lastmod>
   </url>
</urlset>

I hope you well understand this topic , If you have any problem in creating your own sitemap for your website or blog just address me using the comment box ... I will help you . Thanks

0 comments:

Post a Comment

Wapmaster or Webmaster can Comment Us with the following Comment Box . Don't add Links to your site for Spamming our Blog .. Once you add Comment with Link . It will be deleted immediatly by our Admins .

 
Top