We are using the robots.txt to reference our sitemap index file.
Now we will release new, different countries. Our webseite under the TLD .de
provides a robots.txt, containing a reference to our index file. The index files refers to different sitemaps containing our .de
link in loc
XML node. Other locales (eg. for .fr
) are listed with xhtml:link
below.
Example:
<url>
<loc>https://xy.de/hallo</loc>
<xhtml:link>https://xy.fr/hello</xhtml:link>
</url>
The question is now, should we add a robots.txt with a reference to our sitemap index to our .fr
index too?
Or might it is enough to place the reference only in the German .de
robots.txt because the locations are described with alternative locations for each other locale? Or should we invert the loc
XML node with the "current" locale? E.g. under https://xy.fr/robots.txt
should there be a sitemap referenced with .fr
links in the loc
XML node?