rel-sitemap: Difference between revisions
No edit summary |
|||
Line 15: | Line 15: | ||
The relation appears within the HEAD section of the HTML document: | The relation appears within the HEAD section of the HTML document: | ||
<link rel="sitemap" href="/sitemap.xml"/> | <link rel="sitemap" href="/sitemap.xml"/> | ||
Revision as of 13:22, 22 June 2012
Introduction
From http://www.sitemaps.org/ :
Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional metadata about each URL (when it was last updated, how often it usually changes, and how important it is, relative to other URLs in the site) so that search engines can more intelligently crawl the site.
Web crawlers usually discover pages from links within the site and from other sites. Sitemaps supplement this data to allow crawlers that support Sitemaps to pick up all URLs in the Sitemap and learn about those URLs using the associated metadata. Using the Sitemap protocol does not guarantee that web pages are included in search engines, but provides hints for web crawlers to do a better job of crawling your site.
The structure of the XML document, and the sitemap protocol in general, is defined at http://www.sitemaps.org/protocol.html
The sitemap relation extends the protocol to allow each web page in a site to link back to its associated sitemap, instead of using a more general technique such as robots.txt
Details
The relation appears within the HEAD section of the HTML document:
<link rel="sitemap" href="/sitemap.xml"/>