Saturday, March 5, 2011

Google Sitemaps - Indexing URL's in Google

Hi,

Google sitemaps are an excellent way to let google know about the various webpages of your website. By default the google will crawl your website once in a while, but if you create sitemaps and submit them to google, then the indexing gets speed up and also a lot of pages might get indexed in google search engine.

By the term sitemap, I am not referring to the general websites sitemap.html which tell you what are the links and what are the sub links inside the website. Google sitemaps is like a special xml file with predefined tags, each of which has an distinctive meaning. Here is a sample content of a sitemap.xml file:


<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.90">
  <url>
    <loc>http://www.url.com/</loc>
    <lastmod>2010-01-27T23:55:42+01:00</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>http://www.url.com/page1.html</loc>
    <lastmod>2010-01-26T17:24:27+01:00</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>http://www.url.com/page2.html</loc>
    <lastmod>2010-01-26T17:24:27+01:00</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.5</priority>
  </url>
</urlset>

The given tags are predefined. <loc> contains the URL you want to index, <lastmod> is when the content was last modified, <changefreq> is how often its content gets changed and <priority> is how important is the file; where 1 is most important and .1 is least.


Now once you have created this file, its time to submit the file to google. So now you need to go to google webmasters. Anyone can create a google webmasters account and add a website to it. Its FREE ;) This looks like:


After you have added your site, link the link and you will see the detailed analytics of your website. In the right bottom you will find something like this:


Click the "Submit a Sitemap" link. Now while submitting a sitemap file, it needs to be in your server so that it can be accessed online. You need to enter online path of the xml sitemap. This will look something like this:

Once you have done that, google will take some time to index the URL's that are in the sitemap.xml and then your links are available to search.

Cheers!!

No comments:

Post a Comment