Developer forum

Forum » CMS - Standard features » Sitemap in robots.txt on multi site solution

Sitemap in robots.txt on multi site solution

Marie Louise Veigert
Reply

Hi,

We have a multi site solution which all in robots.txt links to /sitemap.xml.

The issue is, that because of the urls where -1, -2 etc is added if url's are the same, we cannot make the url always be www.site.com/sitemap.xml.

I would therefore like to be able to change the url to the sitemap to be fx

site 1:
​www.site1.com/site1/sitemap.xml

site 2:
www.site2.com/site2/sitemap.xml

 

Are there a way to overwrite DW here?
We are running DW 9.15.7

 

We have tried to add something to the websitesettings -> robots.txt but then it just render a sitemap url twice.

 

BR, Marie Louise


Replies

 
Marie Louise Veigert
Reply

I found the solution. Uncheck this checkbox 'Link to Google Sitemap'.

And then define your own in the text field:

 

You must be logged in to post in the forum