Here's the situation, I have a website that can be accessed from several domains, say www.domain1.com, www.domain2.net, www.domain3.com. domains gain access to the same code base, but different CSS, graphics, etc. are loaded depending on the domain.
everything works fine, but now my question is: how do I deal with sitemap.xml? I wrote a sitemap.xml file for the default domain (www.domain1.com), but what about when the site will be accessible from other domains? the contents of sitemap.xml will contain the wrong domain.
I read that I can add several sitemap files to the robots.txt file, so that means I can create, for example, sitemap-domain2.net.xml and sitemap-domain3.com.xml (containing links with the corresponding domains) and just add them to your robots.txt file?
somehow I have doubts that this will work, so I am contacting you experts to shed light on this topic :)
thanks
source share