Developer forum

Forum » CMS - Standard features » DW10 sitemap.xml includes URLs from multiple domains despite "Lock pages to host"

DW10 sitemap.xml includes URLs from multiple domains despite "Lock pages to host"

Bjarki Oskarsson
Reply

Hi,

We are experiencing an issue in Dynamicweb 10 where two areas with separate domains within the same solution are generating identical sitemap.xml files.

Both sitemap.xml files contain URLs from both domains, resulting in cross-domain URLs appearing in each sitemap.

We have enabled the "Lock pages to host" setting in DynamicWeb, but this does not appear to affect sitemap generation. The sitemap still includes URLs from multiple domains regardless of the host binding.

According to the documentation, generated sitemap files should be stored and cached under:

/Files/System/sitemapxml/sitemap-{indexName}-XXX.xml

and cached for 24 hours, with the cache being cleared by deleting the files.

Documentation reference:
https://doc.dynamicweb.dev/documentation/implementing/other/sitemaps.html?q=sitemap

However, this does not appear to match the behaviour we are seeing.

Additionally, some pages do not appear to respect the "Lock pages to host" configuration. For example, when accessing a page through another domain in the same solution (e.g. domain2.com/registration), the user is redirected to domain1.com/registration instead of receiving a 404, even though the page is configured with Lock pages to host.

Questions:

  • Is sitemap generation expected to respect the "Lock pages to host" configuration?

  • Are there known limitations or additional configuration steps required in DW10 to ensure domain-specific sitemap isolation?

  • Could this be related to domain bindings or website configuration at solution level?

  • Has anyone encountered similar cross-domain sitemap behaviour in multi-domain setups?

Environment:

  • Dynamicweb 10.22.8

  • Vue3 frontend rendered inside Razor templates

  • Standard DW sitemap.xml generation
     

Any insights or suggestions would be greatly appreciated. Thanks in advance for any help investigating this.
Best regards,
Bjarki


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Dynamicweb 10 has "URLIndexes" that are used for sitmep generation also. The lock pages to host has nothing to do with the sitemap. Only the pageview.

If you set one or both of the grouping settings below, you get more than one URL index and hence different sitemap.xml

The caching mentioned in the docs are brand new. So you will have to be on 10.24 to see that behavior.

 

 
Bjarki Oskarsson
Reply

Perfect! Thank you so much for the great feedback and response Nicolai. We have confirmed this with our customer now and it's working properly after your recommendations. 

 

You must be logged in to post in the forum