Skip to content
A simple way to generate a sitemap for your .NET web application
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/SimpleSitemap
tests
.gitattributes
.gitignore
LICENSE
ReadMe.md
SimpleSiteMap.sln
appveyor.yml

ReadMe.md

SimpleSitemap

Build status codecov

NuGet
Production
Development

This simple package helps generate search engine sitemap's for ASP.NET web applications.


Installation

Package Name: SimpleSitemap
CLI: install-package SimpleSitemap


What is a Sitemap? Are sitemaps and robots.txt the same thing? Why do I need a sitemap at all?

The wiki has answers all these questions.

Code examples:


Output examples:

    <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
        <sitemap>
            <loc>http://www.myWebSite.com/sitemap/products/?page=1</loc>
            <lastmod>2014-11-24T09:22-08:00</lastmod>
        </sitemap>
        <sitemap>...</sitemap>
        ....
    </sitemapindex>

or

    <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
        <url>
            <loc>http://www.myWebSite.com/products/1</loc>
            <lastmod>2014-11-21T06:31-08:00</lastmod>
            <changefreq>hourly</changefreq>
            <priority>1</priority>
        </url>
        <url>....</url>
        ....
    </urlset>

Robots will ❤️ you!


Lic: MIT

You can’t perform that action at this time.