Sitemaps
January 18, 2009 7:23 PM |
Comments (0) 
| Rate this article: 

There are two forms of sitemaps that you should place on your website.  The first form of a sitemap is an html representation of the structure of your site that end users can use to locate content and navigate to particular areas of your website.  Your HTML sitemap should include links to all the main content areas of the site plus an appropriate number of levels deep of content.  The number of levels you want to use will be dependent on the structure of your site.  You might want to consider keeping the number of links in the sitemap to approximately 100 links.  Your HTML sitemap will be most valuable if you place a link to it in your standard page template, or in the case of an ASP.NET website, in your master page.  This will ensure that users that land on a particular page in your site will be able to locate the sitemap with a single click and use that to find additional content.  The HTML sitemap is really designed to be useful for your end users, but it also helps spiders as it will contain links to all the main content areas of the site, ensuring that spiders can locate most pages in your site quite quickly.  An HTML sitemap won't help influence your search engine rankings.

The other type of sitemap is an HTML sitemap.  This is an xml file format invented by Google to assist in submitting your site to Google.  It wasn't long before all search engines supported the Google sitemap format.  This sitemap mechanism is designed to make it easier for webmasters to submit their pages to the search engine for inclusion in the search catalogs.  Before this, the only way for a search engine to discover new pages in your site was for it to spider the site and look for new links.  This involves retrieving all of your page content on a regular basis.  One of the problems with this mechanism is that there are many scenarios where not all pages have an inbound link from other pages in the site, and because of the use of web applications and querystrings, it was common for there to be endless loops of links in a site.  As such, search engines had to place careful throttling mechanisms in their spiders, which also have the effect that not all pages would be discovered in a site.  An XML sitemap is a mechanism that allows a webmaster to submit a complete list of links for their site.  Now the search engines can use this file as a master reference for all urls in your site.  The use of an XML sitemap won't necessarily help with your search engine ranking, but it definitely will not hurt it, and if used appropriately, will definitely have a positive effect on getting as many of your pages in the search catalog as possible.  That said, it is no magic bullet, because the search engines can still decide which pages are going to be included in the index and which will not, and how frequently the site is indexed. 

How to create an HTML sitemap using ADXSTUDIO CMS

To place an HTML sitemap in your website using ADXSTUDIO CMS, I recommend the following process:

  1. Create a CMS page for the sitemap.  Place any instructional content you want on the page.  I recommend the following:
    • This page should be included immediately under your Home page. 
    • Change the TOC display to none to ensure that it doesn't show up in your child navigation control and other navigational controls (unless that is what you want). 
    • You should disable this page from being included in the onsite search index.  It definitely should be included in the public search engines by use of the robots metatag.
    • The sitemap page should have a custom url.  I typically use /sitemap
  2. Create a new site marker and point it to the site map page.  This allows you to use the page by name in your application code.
  3. Add a new page template in your website project for the sitemap page.  This page should probably use your standard master page and it should include the ADXSTUDIO ContentSections control on the page to allow your content-managed instructions to be displayed on the page.  In addition to the content control, you should also add the SiteMap control to the page and set the SiteMarker attribute on the control to the name of the site marker you created.
  4. Add a new rule in your web.config file to force the sitemap aspx page to be used for the site marker that you created.  This will enable the CMS to render the page with the custom page that you designed with the sitemap control on it.
  5. Feel free to customize the output of the sitemap control.  I typically use a collapsible sitemap control by using the XslFilename="/adx/xslt/default/toc.xsl" as a parameter in the site map page.

How to create an XML sitemap using ADXSTUDIO CMS

ADXSTUDIO CMS is capable of automatically generating a complete XML sitemap for all content pages on your site.  The only step that you need to take is to wire up the handler in your web.config.  This gives you control of the url that you use, and also ensures that this functionality is not functional unless you have explicitly enabled it.  Here is an example of how to wire it up using IIS 6 (and IIS 7 classic mode) configuration.  This will wire up the page as /Sitemap.axd on your website:

<httpHandlers>
    <add verb="GET,HEAD" path="Sitemap.axd" validate="false" type="Adxstudio.Cms.Web.SitemapsHandler, Adxstudio.Cms"/>
</httpHandlers>

 

Tags

Submit a Comment
Title:  
Name:    
Comment:    
Verification:

Type the characters you see in the picture below.