If the sitemap at the root domain https://example.com/sitemap.xml
contains a reference to another sitemap on a subdomain:
<sitemapindex xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://app.example.com/sitemap.xml</loc>
</sitemap>
</sitemapindex>
And the sitemap at the subdomain https://app.example.com/sitemap.xml
contains a location on the root domain:
<urlset xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/my-page</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
</urlset>
Will Google still index https://example.com/my-page
, despite the sitemap chain being:
example.com/sitemap.xml -> app.example.com/sitemap.xml -> example.com/my-page
In other words, will it work despite the subdomains being different?