한 개의 호스트에서 호스트 여러 개의 대한 Sitemap 을 제출하며련 Sitemap에 제출할 URL의 호스트를 소유하고 있다는 사실을 증명해야 한다.

호스트 3개에 대한 Sitemap을 제출해야 한다고 가정 했을때 예는 다음과 같다.

www.host1.com with Sitemap file sitemap-host1.xml
www.host2.com with Sitemap file sitemap-host2.xml
www.host3.com with Sitemap file sitemap-host3.xml

또한 한 개의 호스트에 3개의 사이트를 모두 포함시키려면 Sitemap URL은 다음과 같다.

http://www.sitemaphost.com/sitemap-host1.xml
http://www.sitemaphost.com/sitemap-host2.xml
http://www.sitemaphost.com/sitemap-host3.xml

이렇게 되면 기본적으로 “교차제출” 오류가 발생한다. www.sitemaphost.com에서 호스트하는 Sitemap을 통해 www.host1.com의 URL을 제출했기 때문이다.

이러한 오류를 방지하려면 www.host1.com 의 소유권을 증명해야 한다. 이때는 www.sitemaphost.com의 Sitemap을 가리키도록 www.host1.com의 robots.txt 파일을 수정하면 된다.

이 예제의 경우, http://www.host1.com/robots.txt의 robots.txt 파일은 "Sitemap: http://www.sitemaphost.com/sitemap-host1.xml"이라는 행을 포함하게 된다.

www.sitemaphost.com에 있는 Sitemap을 가리키도록 www.host1.com의 robots.txt 파일을 수정하면 www.host1.com의 소유자라는 것이 명백하게 증명하게 된다.

즉, www.host1.com의 robots.txt 파일 관리자는 www.host1.com의 URL을 포함할 http://www.sitemaphost.com/sitemap-host1.xml의 Sitemap을 신뢰한다는 의미이다.

다른 두 개의 호스트에 대해서도 같은 프로세스를 반복할 수 있으며 www.sitemaphost.com에 Sitemap을 제출하면 된다.

특정 호스트의 robots.txt(http://www.host1.com/robots.txt)가 다른 호스트의 Sitemap이나 Sitemap 색인을 가리킨다면 모든 대상 Sitemap(http://www.sitemaphost.com/sitemap-host1.xml)에서

모든 URL이 해당 호스트에 속하게 된다. 앞에서 언급한 것과 같이 Sitemap은 호스트 한 개의 URL만 포함할 수 있기 때문이다.



  • No labels