Monday, June 27, 2011

Creating Sitemaps


Google can accept Web Sitemaps in a number of formats, but we recommend creating a Sitemap based on the Sitemap protocol because the same file can be submitted to the other search engines, such as Bing and Yahoo!, that are members of sitemaps.org.
Here’s an example of a basic Sitemap with a single entry for a URL that includes an image and a video (for convenience, only a subset of available video information is shown).
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.sitemaps.org/schemas/sitemap-image/1.1"
        xmlns:video="http://www.sitemaps.org/schemas/sitemap-video/1.1">
  <url> 
    <loc>http://www.example.com/foo.html</loc> 
    <image:image>
       <image:loc>http://example.com/image.jpg</image:loc> 
    </image:image>
    <video:video>     
      <video:content_loc>http://www.example.com/video123.flv</video:content_loc>
      <video:player_loc allow_embed="yes" autoplay="ap=1">http://www.example.com/videoplayer.swf?video=123</video:player_loc>
      <video:thumbnail_loc>http://www.example.com/thumbs/123.jpg</video:thumbnail_loc>
      <video:title>Grilling steaks for summer</video:title>  
      <video:description>Get perfectly done steaks every time</video:description>
    </video:video>
  </url>
</urlset>
Once you’ve created your Sitemap, you can submit it to Google using Webmaster Tools. (Before you do this, you must have added your site to your Webmaster Tools account.)
There are a number of third-party tools that can help you generate Sitemaps. In addition to the standard format above, Google also accepts the following as Sitemaps:
  • RSS, mRSS, and Atom 1.0: Google accepts RSS (Real Simple Syndication) 2.0 and Atom 1.0 feeds. If you have a blog with an RSS or Atom feed, you submit the feed's URL as a Sitemap. Most blog software creates your feed for you. Note that the feed may only provide information on recent URLs. In addition, you can use an mRSS (media RSS) feed to provide Google with details about video content on your site.
  • Text file: For basic Web Sitemaps (Sitemaps that include only web page URLs, not image, video, or other specalized data), you can provide Google with a simple text file that contains one URL per line. For example:

    http://www.example.com/file1.html
        http://www.example.com/file2.html
        
    For best results, follow these guidelines:
    • You must fully specify URLs, as Google attempts to crawl them exactly as provided.
    • The text file must use UTF-8 encoding.
    • The text file should contain nothing but the list of URLs.
    • You can name the text file anything you wish. Google recommends giving the file a .txt extension (for instance, sitemap.txt).

Guidelines for SitemapsLearn more...
Sitemap extensions (video, images, News ...)Learn more...
Sitemap tag definitionsLearn more...


Guidelines for Sitemaps

  • A Sitemap file can contain no more than 50,000 URLs and must be no larger than 10MB when uncompressed. If your Sitemap is larger than this, break it into several smaller Sitemaps. These limits help ensure that your web server is not overloaded by serving large files to Google.
  • If you have more than one Sitemap, you can list them in a Sitemap index file and then submit the Sitemap index file to Google. You don't need to submit each Sitemap file individually.
  • Specify all URLs using the same syntax. For instance, if you specify your site location as http://www.example.com/, your URL list should not contain URLs that begin with http://example.com/.
  • Do not include session IDs in URLs.
  • Your Sitemap file must specify the Sitemap namespace: xmlns="http://www.sitemaps.org/schemas/sitemap/0.9".
  • The Sitemap URL must be UTF8-encoded, and encoded for readability by the webserver on which it is located. More information.

Sitemap extensions (video, images, News ...)

As well as basic URL information, Sitemaps can contain detailed information about specific types of content on your site, including videoimagesmobile,Newssoftware source code, and geographical (KML) information.
Depending on the type of content included in your Sitemap, you should specify the appropriate namespace(s), listed in the table below. Be sure to specify the namespace for every type of information included in your Sitemap.
General URLxmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
Imagesxmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
Videoxmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
Mobilexmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0"
Code Searchxmlns:codesearch="http://www.google.com/codesearch/schemas/sitemap/1.0"
Geoxmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0"
Newsxmlns:news="http://www.google.com/schemas/sitemap-news/0.9".Google recommends, however, that you create separate Sitemaps for news content; these Sitemaps will be crawled very frequently to check for new articles. More information about news Sitemaps.

Sitemap tag definitions

The following table outlines the tags required for Sitemaps listing web URLs. To add more detailed information about specific content types, see video,imagesmobileNewssoftware source code, and geographical (KML) information.
TagRequired?Description
<urlset>RequiredEncloses all information about the set of URLs included in the Sitemap.
<url>RequiredEncloses all information about a specific URL.
<loc>RequiredSpecifies the URL. For images and video, specifies the landing page (aka play page, referrer page). Must be a unique URL.
<lastmod>OptionalThe date the URL was last modifed, in YYYY-MM-DDThh:mmTZD format (time value is optional).
<changefreq>OptionalProvides a hint about how frequently the page is likely to change. Valid values are:
  • always. Use for pages that change every time they are accessed.
  • hourly
  • daily
  • weekly
  • monthly
  • yearly
  • never. Use this value for archived URLs.
<priority>OptionalDescribes the priority of a URL relative to all the other URLs on the site. This priority can range from 1.0 (extremely important) to 0.1 (not important at all).Does not affect your site's ranking in Google search results. Because this value is relative to other pages on your site, assigning a high priority (or specifying the same priority for all URLs) will not help your site's search ranking. In addition, setting all pages to the same priority will have no effect.
updated 06

4 comments:

  1. Obviously that website redesign are generally essential for every person. There you get a chance to go for website redesign job in case you prefer guidance in writing a thesis on the topic
    Yüz Germe

    ReplyDelete
  2. our world is very beautiful.and we are very lucky that we born our world to see our beautiful world.now we all celebrate our party.
    white hat SEO services

    ReplyDelete
  3. Nice blog,King of Digital Marketing is one of the professional seo packages provider company in Delhi who offer best SEO Plans.

    ReplyDelete
  4. Hii
    Nice Blog
    Guys you can visit here to know about SEO
    Top seo company in Chandigarh

    ReplyDelete