Sitemaps Explained: How to build XML and HTML Sitemaps for B2B Websites

Sitemaps are not the sexiest topic to talk about when it comes to the internet and SEO, but they are extremely useful tools to communicate your content to the search engines and to you readers. This task is rather simple if you have a blog powered with WordPress or Joomla but it becomes quite an interesting task when dealing with large content sites. (i.e. Google itself).

This is a review of a sitemap from the basics to implementation We’ll review the proper code to be used and how to implemented in your website. This can be applied to any type of B2B (and other) websites with lots of content.

First, let’s get the basic stuff out of the way.

1. What is a sitemap?

A sitemap is a map of all the important links in your site usually broken down by category or topic. For a more technical explanation check out What is a sitemap? (source: .www.webdevelopersnotes.com)

2. What is a sitemap useful for?

A sitemap is useful for two things. It talks to search engines and helps humans navigate your site. The sitemap talks to the search engines and informs them about new URLs or updates to your existing content in existing pages via XML. The sitemap also helps humans to navigate your site by highlighting the different topic areas and  categories in an orderly fashion via HTML.

3. What sitemap formats should I care about?

The most important formats for a sitemap are two: The XML sitemap and the HTML sitemap. They both achieve the two things that I listed above. XML talks to the search engines and the HTML helps humans navigate.

It is important to understand the difference between the XML and the HTML sitemaps. The XML version needs to be maintained in order to be useful. The XML code carries indicators that will tell Google and other search engines about new URLs or fresh content to be indexed.

Now let’s dive into how to code an XML sitemap properly.

First, for sites built on top of open source software such as wordpress or joomla you are in luck because there are plugins that will do all the back end work for you and will deliver a nicely formatted automated sitemap in XML and HTML.

For larger sites like B2B sites it really depends on your CMS. It might be that you are able to install a plugin to do this automatically or you can implement the google sitemap generator in your server. This requires knowledge of phyton and server side access to your site. However, if implemented properly, your site will benefit greatly from the script because the XML sitemap generation will be automated.

Some considerations to keep in mind for larger sites:

  • An XML sitemap should not carry more than 50,000 URLs
  • If your site has several large directories below the root, then it is recommended to create an XML sitemap for each section.
    • For instance, XML sitemaps should exist for:
      • Country specific websites
      • Topic specific directories
  • Follow the guidelines offered by Google. The XML sitemap format and the XML tags should be properly determined and adequetedly formed.  Here is an example from Google’s guidelines that you can read on it entirety here.

The Sitemap Protocol format consists of XML tags. All data values in a Sitemap must be entity-escaped. The file itself must be UTF-8 encoded.

A sample Sitemap that contains just one URL and uses all optional tags is shown below. The optional tags are in italics.

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
   <url>
    <loc>http://www.example.com/</loc>
   <lastmod>2005-01-01</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
   </url>
</urlset>

—————————

4. Examples of websites using XML sitemaps

In order to understand how to utilize and how the XML would be loaded and displayed in your website and a search engine, I wanted to use a large enough website that is using XML sitemaps to talk to google. The chosen website is google.com

If you use this command to look for XML file types in the Google site, then you will see a sitemap.xml site popup as a first result in the search engine.

google search command: filetype:xml site:www.google.com

Google sitemap XML search

Google sitemap XML search

Depending on your browser, the XML file will display differently, but here is how it displays in firefox (it’s meant to be rendered like this):

XML Google sitemap

XML Google sitemap

Final considerations

  • The sitemap.xml file  is not meant to be seen by humans, hence there is no need to link to it from your website. The XML sitemap will be submitted to google via a ping or via google webmasters tools.

Ping example:  www.google.com/webmasters/tools/ping?sitemap=sitemap_url

  • Both files will be indexed. The XML and the HTML. However, when a generic search is conducted, the most relevant and useful to the user result will be delivered and that is the HTML version  of the sitemap.
  • Follow all of Google’s guidelines for sitemaps and test. Keep the chatter and theories about SEO and sitemaps to a minimum. To achieve this, think about your site uniquely challenged with a unique set of issues that are not equal to any other site.
  • Analyze, implement, test, measure. Repeat.
  • Resources:

    How to build a colorful sitemap using jQuery? (Smashing magazine) by @chriscoyier

    Sitemap protocol (Google.com) Webmasters tools

    XML-sitemaps - Follows the Google guidelines to build sitemaps if you don’t have access to the server.

    Related posts:

    1. Yahoo And Google Launch Sitemaps.org
    2. How to build a Remote High Performing Team?
    3. B2B SEM | B2B Search Engine Marketing and the Long Tail
    4. Social Media: It is not rocket science

    4 Responses

    1. Martin Bigler 03. Feb, 2009 at 4:12 am #

      Thanks for this Sitemap post which helped me nicely as I was just considering to create a sitemap.

    Trackbacks/Pingbacks

    1. Posts about search engine marketing as of January 27, 2009 - 27. Jan, 2009

      [...] , search engine marketing or PPC, copyright and trademark issues.Other panel members included Sitemaps Explained: How to build XML and HTML Sitemaps for B2B Websites – altamirano.org 01/27/2009 Sitemaps are not the sexiest topic to talk about when it comes to the [...]

    2. sitemap.xml | What Babies Need - 10. Jun, 2009

      [...] Sitemaps Explained: How to build XML and HTML Sitemaps for B2B … [...]

    3. http://antwan34burt.livejournal.com/991.html - 18. Aug, 2010

      iPhone App Marketing…

      [.. Pertaining to the news piece on iPhones ..]…

    Leave a Reply