Monday, 1 February 2016

Sitemap Example

XML Sitemaps are similar to RSS feeds and use XML to represent the contents of your website in a structured format to give search engines hints about the content of your website .

The Sitemap protocol is an open standard supported by the main search engines including Google, Yahoo and Microsoft Bing.

An XML Sitemap contains 4 basic elements for each page in your website, but can be extended to include more information :

  • Url location
    The full URL to the webpage.
  • Last modified date
    When the page was last updated.
  • Change frequency
    How often the page changes.
    Never, Yearly, Monthly, Weekly, Daily, Hourly, Always
  • Page priority
    A number 0.0, 0.1, 0.2 through to 1.0 to indicate the relative priority of pages within your website.


Example



A simple XML sitemap example would look like this :

<?xml encoding="UTF-8" version="1.0" ?>
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <url>
       <loc>http://www.g-mapper.co.uk/index.aspx</loc>
       <lastmod>2010-10-01</lastmod>
       <changefreq>daily</changefreq>
       <priority>0.8</priority>
   </url>
   <url>
       <loc>http://www.g-mapper.co.uk/about.aspx</loc>
       <lastmod>2009-01-01</lastmod>
       <changefreq>yearly</changefreq>
       <priority>0.1</priority>
   </url>
</urlset>



The marked up example sitemap below further explains the content of an XML sitemap :

Example Sitemap explained
Example sitemap explained

Create you own


You can quickly and easily generator your own sitemap example using our sitemap generators.

Alternatively you can look at our sitemap as an example : https://xmlsitemapgenerator.org/sitemap.xml