Developer forum

Forum » CMS - Standard features » Default sitemap in a multi-site environment

Default sitemap in a multi-site environment

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,
I have a project running on an old DW9 version.
Up to recently, we only had a single website defined and for the purpose of the sitemap, it all worked well. Adding /sitemap.xml resolved the sitemap correctly.
Now, we've added 2 more websites and these 2 new websites cannot resolve the /sitemap.xml correctly. Trying to access the sitemap ends up in a 404 redirect to the main website.
Something like this: https://{first website}/sitemap.xml?404;https://{newwebsite}:443/sitemap.xml
I checked IIS, and there are no URL redirects that could interfere.
In URL redirects, I don't have any rules to interfere with the redirect.
Both new websites load correctly except for the sitemap.
What am I missing?

Thank you,

Adrian


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Might be domain and host settings on the website list or the url settings. E.g. if all sites share the same urlindex, but each site has hostname on it and the website is marked so only the primary host can be reached. One of more of those settings...

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you for the reply. 
I have 4 websites:
Website 1 is not locked to a domain
Website 2 is not locked to a domain
Website 3 is locked to a domain
Website 4 is locked to a domain

Website 1 and 2 share the same domain, website 2 is using a subfolder under the main domain.
Could this be the issue? Do I have to remove the lock on all? Or lock the domain to all?

Thank you,

Adrian

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Either remove the lock - or isolate them in website/languages in settings so they each get its own urlindex.

If they share urlindex - and you lock domains, then the urls cannot be in the sitemap because they come from another urlindex.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

HI Nicolai,
I am not sure I understand how the websites could share the same URL index since most of them have a domain set up.
since 2 of them are supposed to be using the same domain, I cannot set them to lock on the domain. But I can lock the other ones.
I tried already removing the lock on the 2 separate websites but there is no change.
Can I force the refresh of the url index somehow? How can I make sure they don;t share the same URL index on different domains?

Thank you,
Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Bump!

 

You must be logged in to post in the forum