Mastering SEO in Divhunt: Sitemap and Robots.txt Setup

When it comes to SEO, structure matters. And in Divhunt, you have full control over two powerful tools that shape how search engines understand your website: your sitemap and your robots.txt file.

These two features are both editable directly inside your project settings and play a huge role in helping Google, Bing, and other crawlers index your content properly. Let’s break them down and show how to set them up the right way — step by step.

What is a Sitemap and Why Does It Matter?

A sitemap is essentially a map of all your website’s pages. Think of it like a shopping mall directory: it helps search engines understand the structure of your site and find every important page without getting lost. This is especially critical for larger websites or sites with complex navigation, as it ensures nothing important is skipped.

In Divhunt, you’ll find the Sitemap field at the bottom of your Project Settings panel. By default, Divhunt automatically includes all static pages in your sitemap — meaning your homepage, about, contact, and similar pages are already covered.

However, CMS collection pages (dynamic pages) are not automatically included. That’s intentional. You might have CMS collections like testimonials, categories, or tags that aren’t SEO-relevant, and including them would clutter your sitemap.

How to Include CMS Collections in Your Sitemap

To include only specific dynamic collections (like blog posts or services), follow these steps:

  1. Go to the CMS tab.
  2. Click into the collection you want to add (e.g. Blog).
  3. Copy the collection's ID (you can click to copy).
  4. In your Sitemap field, type: @collection.YOUR_COLLECTION_ID
  5. Save and publish.

All CMS pages under that collection will now be automatically included in your sitemap.

You can also add pages manually using custom XML. Here’s a basic example:


  https://yourdomain.com/special-page
  monthly
  1.0

  • = the page URL
  • = how often the page changes (always, daily, weekly, monthly, yearly, never)
  • = how important this page is (from 0.0 to 1.0)

This gives you full control over how search engines treat specific pages — and it’s especially useful if you’re publishing custom landing pages or external links not tracked in the visual builder.

To preview your sitemap, go to:

https://yourdomain.com/sitemap.xml

If you leave the Sitemap field empty, search engines may still crawl your site — but without a clear map, indexing will be slower and less efficient.

What is Robots.txt and Why You Need It

The robots.txt file is a set of instructions for search engine crawlers. It tells them which pages they’re allowed to access and which they should ignore. In Divhunt, this field is also available under Project Settings.

Here’s a common example:

User-agent: *
Disallow:
Sitemap: https://yourdomain.com/sitemap.xml
Host: https://yourdomain.com
  • User-agent: * = applies to all crawlers
  • Disallow: = leaving it blank means nothing is blocked
  • Sitemap: = points crawlers to your sitemap
  • Host: = specifies your preferred domain

Want to block a specific folder? For example:

Disallow: /private/

Now anything under /private/ won’t be indexed.

You can also create crawler-specific rules. For example:

User-agent: Bingbot
Allow: *.js
Allow: *.css

This lets Bing’s crawler access your JavaScript and CSS files — which can help it better understand how your site behaves visually and improve indexing.

To test your robots.txt file, just visit:

https://yourdomain.com/robots.txt

SEO Tip: Use Both Together

Your sitemap tells search engines what to index. Your robots.txt tells them what to ignore.

Together, they help you guide search engine bots through your site, highlight your most important content, and reduce SEO waste.

For most websites built in Divhunt, the default settings will do a decent job. But if you want fine-tuned control — especially if you're targeting Google Search Console or using a custom CMS setup — these fields are your best tools.

Final Thoughts

Setting up your sitemap and robots.txt is a foundational part of optimizing your website for search engines. In Divhunt, this process is streamlined and built right into your project — giving you complete control without needing third-party plugins or external hosting.

Want to go deeper? You can combine these tools with custom meta tags or Divhunt’s CMS filtering to further boost your SEO performance.

And remember: just like your content, your SEO settings should evolve over time. Update your sitemap as you publish new pages, and refine your robots.txt as your site grows.

Happy building — and happy crawling.