How sitemap works


Since this one requires a tutorial in order to understand it, here it is.

Sitemap purpose is to lists all the pages that are on a website so search engines like Google can find them easily. With a sitemap, your website can be more easily understood by search engines, which helps your website show up in search results. This is important for getting more people to visit your site. It also helps website owners understand the structure of their site, making it easier to manage and update.

Sitemap is auto-generated on Divhunt, but in case you are using collections, you need to adjust it a bit. And ss well, you can add your own custom sitemap.

Sitemap is not visible by an admin if you visit /sitemap.xml

If you are currently working on your website, and check /sitemap.xml url, you will see that is empty. We will improve this in future, and for now you can be assured that your sitemap is working by visiting yourwebsite[dot]com/sitemap.xml from incognito tab in your browser.

Sitemap settings location

Go to the settings of your website, and scroll down:

Auto generated data

By default on your Divhunt website, you will see @pages written in your sitemap.
This means, all of your static pages are being added to your sitemap (exluding pages that you have set to be no-index in your page settings).

Add collection pages to your sitemap

If you want search engines to index all single pages of your collection, such as Blog, you need to add it manually in your sitemap.

All you need to add in sitemap as new line is: @collection.COLLECTION_ID.

You can find your collection ID, when you open your collection:

In this example, ID of my collection is 182, and now if I go to the settings of my sitemap, you will see that I have added ‘@collection.182’ in my sitemap

Custom sitemap

You can enter your pages manually, you dont need to write your XML file headings, you can just start adding your pages. Heres one example of code:


Combine custom sitemap with auto-generated sitemap

Previously I’ve showed you how to auto-generate your sitemap for collections & pages, and as well how to write your own custom sitemap. Now this is intersting part, this two can be combined!

Let’s say that you want to have full control of sitemap only for your static pages, but let Divhunt auto generate sitemap for collections.

In example below, you will see that I have manually written sitemap for my static pages, and then below I called auto generation code for my collections.





Hello, is there a way to find the collection id please?
Seems it’s not visible in the URL anymore.
Thank you in advance


I’ve pushed an update for this, please re-install any plugin in order for changes to take place immediately.


Do you mean I have to uninstall the application (collections)?
Can you please confirm if I reinstall, all my data (blog articles) will be recovered?
Thank you

One more question please: is there a way to generate it automatically for Rest API data too (for example Airtable and other custom API)?

Thank you :slight_smile:

I second this @dejan:
Reinstall Applications (Collections, REST, etc.) and/or reinstall PlugIns?

Also, is all data preserved if I uninstall and reinstall?

@bktag @MixxMaster reinstall some random plugin. It can be some plugin you don’t even use, so the system can update faster. :smile:


Great, working.

A silly question, maybe:
/sitemap.xml isn’t available/not found when using https but on HTTP it works - the sitemap is found and correct…

Bug, or is this the intended behavior? Idk how search engines find the sitemap so…

Great! thank you :slight_smile:
What about 3rd party CMS and other Rest API generated pages please?


I mean just install or uninstall any plugin, maybe one you don’t use at all.

Since the process behind that is, your website functionality (dh framework, etc) get’s re-builded with newest features, so you don’t need to wait for system to do that for you as it takes time.


What is your domain? http should be disabled? Also sitemap is not working if you are admin (logged in), only for the visitors and live website.

Hi @dejan yes I got this part and it worked fine :slight_smile:
I was asking about how to generate sitemap including pages from 3rd party CMS and other Rest API (airtable, custom API…). Is it possible?



Thanks, seems that we are allowing http, but only on staging domains, we will fix this!
On custom domains, everything works properly.

@dejan @Lazarevic any feedback on my question please? (about sitemaps for 3rd party CMS and Rest API)
Thank you :slight_smile:


Can you give me example of what you want to accomplish?

I have an Airtable database containing hundreds of organizations and would like to use it to create a kind of directory.
So I’m wondering how to have these organizations’ pages in the sitemap.


Please share your domain name once you connect Airtable and I’ll see what I can do.

Usually when using 3rd-party database, you’ll need manually to add sitemap, but maybe we can figure something out. thank you :slight_smile:

Hey, any news about this please? :slight_smile: