Friday 21 July 2017

what is sitemap.xml file

Sitemaps are a URL inclusion protocol and complements robot.txt, a URL exclusion protocol.
The sitemap.xml file allows a webmaster to inform search engines about all URLs on a website that are available for crawling. It allows webmasters to include additional information about each URL: when it was last updated, how often it changes, and how important it is in relation to other URLs in the site. This allows search engines to crawl the site more intelligently. A Sitemap is an xml file that lists the URLs for a site.
Sitemaps are particularly beneficial on websites where:
  • some areas of the website are not available through the browsable interface
  • webmasters use rich Ajax, Silverlight, or Flash content that is not normally processed by search engines.
  • The site is very large and there is a chance for the web crawlers to overlook some of the new or recently updated content
  • When websites have a huge number of pages that are isolated or not well linked together, or
  • When a website has few external links
Example of a sitemap,

<?xml version="1.0" encoding="UTF-8"?>
<urlset 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/sitemap.xsd">
    <url>
        <loc>http://www.pineapplelabs.in/</loc>
        <lastmod>2017-07-21</lastmod>
        <changefreq>1</changefreq>
        <priority>1.0</priority>
    </url>
    <url>
        <loc>http://www.pineapplelabs.in/about.php</loc>
        <lastmod>2017-07-21</lastmod>
        <changefreq>1</changefreq>
        <priority>0.9</priority>
    </url>
    <url>
        <loc>http://www.pineapplelabs.in/career.php</loc>
        <lastmod>2017-07-21</lastmod>
        <changefreq>1</changefreq>
        <priority>0.9</priority>
    </url>
    <url>
        <loc>http://pineapple-labs.blogspot.in/</loc>
        <lastmod>2017-07-21</lastmod>
        <changefreq>1</changefreq>
        <priority>0.9</priority>
    </url>
</urlset>

No comments:

Post a Comment