Orckestra / C1-CMS-Foundation

C1 CMS Foundation - .NET based, open source and a bundle of joy!
https://c1.orckestra.com/
Other
252 stars 109 forks source link

One and the same "generic" sitemap is generated for different hostnames #591

Open wwwysocki opened 6 years ago

wwwysocki commented 6 years ago

Question:

Is it so by design?

Prepare:

  1. Have one C1 CMS installation
  2. Have 2 subsites within it
  3. Have 2 website languages
  4. Translate both subsites into non-default languages
  5. Have 4 working hostnames prepared to be used in C1 CMS, for example, site1.english, site1.french, site2.english, site2.french etc

Repro:

  1. Map 4 hostnames to 2 subsites in the default languages and 2 subsites in the non-default language
  2. Open website using each hostname and append /sitemap.xml to generate a sitemep for the website

Expected:

Each hostname shows a respective sitemap for the subsite it is mapped to:

site1.english and site2.french should show different (their own) sitemaps

Actual:

Each hostname shows one and the same "generic" sitemap with specific (frontpage/language based) locations for sitemaps

chrome_2018-06-25_15-27-26

napernik commented 6 years ago

It looks like this scenario isn't implemented, what's missing is

1) Handling /robots.txt request so a different full sitemap URL is returned (with the hostname matching current request)

2) The new sitemap request should generate sitemapindex that would return all the sitemaps related to current hostname only.

burningice2866 commented 6 years ago

This is really annoying on some sites, ie. running intranets on the same solution as public websites since it can expose otherwise non-exposed content.