Search Engine Sitemap for Umbraco (sitemap.xml)

by Masood 2. September 2009 18:01

Outputs an xml file (e.g. http://www.yourdomain.com/sitemap.xml) - Outputs an xml sitemap that can be submitted to Google and other search engines. - Compliant with the sitemap XML specification on http://www.sitemaps.org/protocol.php

Adding Update Frequency and/or Priority (Optional)

This package outputs the Url and the modified date
Add the update frequency and importance by adding these properties to your document types:
seSitemapChangeFreq
seSitemapPriority
Valid values for change frequency: (always, hourly, daily, weekly, monthly, yearly, never)
Valid values for priority: (0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0)

Configuration

(a). Add the following httpHandler to your web.config httpHandlers section
- configuration
-- system.web
--- httpHandlers

<add verb="*" path="sitemap.xml" type="MA.Umbraco.Web.SiteMapGenerator.SiteMapHttpHandler, MA.Umbraco.SiteMapGenerator" />

(b). In the IIS site for your site, do the following steps:
1. Open Properties
2. In the Virtual Directory or web site equivalent tab, select Configuration at the bottom of the panel.
3. In the Mappings tab, click Add
4. Add the following into the Executable field "c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll"
5. Add ".xml" into the extension field
6. Choose "All Verbs"
7. Check "Script Engine" and uncheck "Check that file exists"
8. Save by clicking OK

(c). Test the sitemap e.g. http://www.yourdomain.com/sitemap.xml

Download Umbraco Package for Sitemap

Sitemap.xml_1.0.zip (5.28 kb)

Tags:

General | Umbraco Packages

MasoodAfzal.com Copyright 2009

Masood Afzal

Microsoft Certified Technology Specialist (MCTS)

Umbraco Certified Professional

C#/ASP.NET/MVC
.Net Framework 4.0/3.5/2.0
MS SQL Server 2008/2005/2000
Web/Windows Services, WCF
Windows applications (WinForms, WPF)
XML/XSLT
Immediacy CMS
Umbraco CMS

Tag cloud

    RecentPosts

    RecentComments

    Comment RSS

    Month List

    Most comments

    hesi hesi
    18 comments
    us United States
    Pop Up powers Pop Up powers
    14 comments
    us United States
    Aluminum Sheet Aluminum Sheet
    14 comments
    us United States
    classified submission services classified submission services
    13 comments
    us United States
    calculatoare second calculatoare second
    10 comments
    us United States