I remember when making a sitemap, all URLs defined in between
</loc> must be part of the same domain as the domain the file is stored on. For example, I can use this line in my sitemap…
…Only if the sitemap is stored on and publicly accessible from the folder mapped to the
But that entry above won’t work if the sitemap is stored on a folder representing a different domain such as
y.example.com or even
My question is, should I use the above thinking when trying to index for Google images? For example, do image URLs defined in
</image:loc> have to contain the same domain as the location of the sitemap file the entries are contained in?
The reason why I ask is because I have two subdomains. Let’s call them
i.example.com. T is for text, and I is for images.
My site map for one page currently would look like something as follows:
<url> <loc>http://t.example.com/page-one.html</loc> <image:image> <image:loc>http://i.example.com/image-one</image:loc> <image:title>Some image</image:title> </image:image> </url>
Am I wrong with using a different subdomain to reference the image? Assume the sitemap file is stored and accessed at