1

This question already has an answer here:

I have a website lets say xyz.com for which i have the sitemap index at xyz.com/sitemap.xml

Within the sitemap index file there are multiple sitemap links which are hosted on a subdomain of xyz.com lets say sitemap.xyz.com.

So the structure of sitemap index file is as follows

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>
https://sitemap.xyz.com/sitemap1.xml
</loc>
</sitemap>

<sitemap>
<loc>
https://sitemap.xyz.com/sitemap2.xml
</loc>
</sitemap>
</sitemapindex>

Also i have submitted the sitemap index file in Google search console and google correctly shows the total count of pages from all sitemaps

Is this structure recommended or will there be any issue with this architecture

PS This question is not about cross domain sitemaps

marked as duplicate by Maximillian Laumeister, John Conde Apr 19 at 17:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • The possibly duplicate question mentioned above talks about cross domain sitemaps, however i am referring to sitemap hosted on a subdomain of the same domain – Shahzeb Qureshi Apr 19 at 16:41
  • 1
    Fair, though I tend to believe that the answer will be exactly the same. There's no reason for me to think it would work on a separate TLD but not on a subdomain. – Maximillian Laumeister Apr 19 at 17:51