So I know that the correct way of identifying pages in a sitemap is like this:


If I want to include images in the sitemap, I know that I need to include the image extension and I could then include images like this:


My question is, what if I'm using a software that generates the sitemap without an image extension and instead adds images like this:


I know that Google is ignoring those images (at least it is ignoring them in webmaster) but could this have any negative affect on the functionality of the sitemap.xml file? I know that Google will ignore all canonical tags of a website if there are too many that point to deceptive or error pages — does this same concept apply to sitemaps that have URLs that are not pointing to indexable webpages? Is any documentation on something like this?

  • Why you're doing that? Any good reason. – Goyllo Oct 19 '16 at 11:14
  • I'm not doing it which is the point of the question. – John R Perry Oct 19 '16 at 23:55
  • I have never done that, but I think it will treat, same as other webpages with .php and .aspx extension. I don't think there is any negative effect, because if there is any penalty then it will low quality or thin content, and Google don't consider photos as low quality. There are some gallery website, who open image, completely in new url, and google don't treat them as low quality webpage. – Goyllo Oct 20 '16 at 6:53

As per my experience it will not have any negative effect upon SEO. However, you must create a separate sitemap for your image collection which will works better in terms of search engine algorithms. That way, Googlebot will find the already segregated data (Page, Image, Post etc) for their crawling perspective.

For example you should go through Yoast plugin sitemap structure.

PFA screen-shot here. About what i am talking? Image sitemaps

enter image description here

| improve this answer | |
  • Can you expand upon your experience with image URLs directly in <loc> in a sitemap? I've never heard of anybody doing that before. Why would you have done it? – Stephen Ostermiller Oct 22 '16 at 9:02
  • @StephenOstermiller I know you have a vast experience in that field but you never heard about it from anybody because Nobody actually cares about the Google Guidelines. Plz refer the attachment in the above edited Answer by Me. – Premnath321 Oct 25 '16 at 9:36
  • Thank you for editing in more information. That screenshot puts the images in <image:loc> tags, not directly into the <loc> tags as the person who asked the question. – Stephen Ostermiller Oct 25 '16 at 11:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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