Skip to content

A simple way to generate a sitemap for your .NET web application

License

Notifications You must be signed in to change notification settings

PureKrome/SimpleSitemap

Repository files navigation

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