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

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!

Ready to Start?

Let's Build Something Amazing Together

Ready to bring your vision to life? We specialize in creating stunning websites, mobile apps, and digital experiences that make an impact.

Accepting new clients
Free consultation
15+ years experience