2

I have two domains running on the same server with the same IP (different content).

I have read that it is ok to provide only one sitemap containing information for both domains, so this is what the sitemap looks like (extract):

<url>
    <loc>http://www.domain1.tld/page1/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
</url>
<url>
    <loc>http://www.domain2.tld/page1/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
</url>

Now when I submit the sitemap in Google Webmaster Tools I get the following error message:

This url is not allowed for a Sitemap at this location.

which is caused by the second domain being in the sitemap.

I have read that it is possible to also provide Google, etc. with different sitemaps for each domain.
Would that be solution or can I ignore the error? What would be the best solution

2 Answers 2

2

Here is Google's documentation on multiple sitemaps

The most likely cause of your error is that you have not verified each of the sites using webmaster tools. I would suggest that you:

If you have done that and still get the error then you would have to split it into two sitemaps.

2
  • I had both websites in the Webmaster Tools. The second one I put as http://domain2.tld instead of http://www.domain2.tld After adding the www version no more errors are shown. Thanks!
    – horen
    Commented Jun 7, 2013 at 10:11
  • Its often good to put in both the version with and without the www into webmaster tools, it can show you different errors. Commented Jun 7, 2013 at 10:24
1

Sites are not indexed per IP address because there can be many websites on a single server and IP.

I would not ignore errors in Webmaster Tools, and would suggest submitting separate sitemaps for each site you want indexed. There is no benefit trying to combine them if the content and domains are different.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.