Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

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.

share|improve this answer
    
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 Jun 7 '13 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. –  Stephen Ostermiller Jun 7 '13 at 10:24
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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