Published on

Viewing what's in your Sitefinity Sitemap


You can generate a Sitemap automatically at /Sitefinity/Administration/sitemap/sitemap

So there’s two links on that page

  • https://yoursite/sitemap/sitemap.gz
  • https://yoursite/sitemap/sitemap-index.xml

The .gz you can’t view in browser, and the xml just points at the gz

So WHY would we want to view the Sitemap you’re probably thinking. There’s a couple reasons, but the primary being you need to be able to audit that someone hasn’t forgotten to remove a page from indexing, or maybe you have a dynamic content widget that’s generating bad routes because it’s not in “Master” mode.

So we’re just going to take Sitefinity’s documentation example and expand on it a bit.

We’re going to make sure there’s no trailing slashes in the output, it seems to do that to the homepage at least. Also remove localhost, because why not… Then finally we’re going to just loop through all the pages and dump them to a ~/sitemap.txt file you can access in your browser!

Boost your online presence.

Let us create the perfect digital experience for your company.

Contact us now