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 (same content).

For example: the sitemap of example1.com represents one website and method1.com, method2.com represent many pages will come. So can I use only one sitemap for both or make different sitemaps?

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

If I'm working on the second URL it's affecting the homepage also.

Whether I need to create 2nd URL for sitemap or homepage url?

share|improve this question
Why do you want to create a sitemap? If Google are indexing the two websites then a sitemap isn't needed. –  zigojacko Feb 10 at 10:40
@GeoffJackson-zigojacko: A submitted sitemap can help with reporting. You can easily see how many URLs from the sitemap have been indexed, and consequently if you submit multiple sitemaps for different parts of the site, you can easily see if these sections have been indexed. –  w3d Feb 10 at 14:16

2 Answers 2

If you have two verified sites (verified in Webmaster Tools) means you can have a single sitemap.

If you have multiple websites, you can simplify the process of creating and submitting Sitemaps by creating one or more Sitemaps that includes URLs for all your verified sites, and saving the Sitemap(s) to a single location. All sites must be verified in Webmaster Tools

A single Sitemap that includes URLs for multiple websites, including sites from different domains. For example, the Sitemap located at http://host1.example.com/sitemap.xml can include URLs for the following sites:

Here is the source.

share|improve this answer
see this sitemap.xml<url> <loc>example1.com</loc>--------->home page <changefreq>weekly</changefreq> <priority>0.7</priority> </url> <url> <loc>method1.com</loc>------------>inner page <changefreq>weekly</changefreq> <priority>0.7</priority> </url> <url> <loc>method1.com</loc>; <changefreq>weekly</changefreq> <priority>0.7</priority> </url> –  user35767 Feb 10 at 12:06
Note that the ability to have a single sitemap for multiple domains is Google-only AFAIK. This is not part of the Sitemap protocol. –  w3d Feb 10 at 14:26

You will need to make different sitemaps as you cannot have URLs from different domains within.

share|improve this answer
Do you have any reference for this? –  Andrew Lott Feb 10 at 11:27
ok but home page url is in frameset and redirecting to another url has many pages and homepage has 1 url –  user35767 Feb 10 at 11:43
<url> <loc>example1.com</loc>; <changefreq>weekly</changefreq> <priority>0.7</priority> </url> <url> <loc>method1.com</loc>; <changefreq>weekly</changefreq> <priority>0.7</priority> </url> <url> <loc>method2.com</loc>; <changefreq>weekly</changefreq> <priority>0.7</priority> </url> –  user35767 Feb 10 at 11:50
example.com is home page method1.com is another –  user35767 Feb 10 at 11:51
Sitemap protocol : sitemaps.org/protocol.html –  user29671 Feb 10 at 12:44

Your Answer


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.