• I noticed that the image URLS in the sitemap were referencing the Photon url (IE i2.wp.com…) and not the local site url.

    Google was not showing my images as indexed. I’ve made the following change to core.php to fix this:

    $url = wp_get_attachment_image_s
    rc( $attachment->ID, 'single_post_thumbnail' );

    to

    $url = wp_get_attachment_image_s
    rc( $attachment->ID, 'single_post_thumbnail' );

    You might be able to make this a little more fancy and just auto-detect if photon is installed to call this. Now my sitemap has the <image:loc> as my proper url.

    No idea if this is needed – thoughts?

    https://www.ads-software.com/plugins/xml-sitemap-feed/

Viewing 1 replies (of 1 total)
  • Hi,

    Yes images may be hosted on a CDN which uses a different domain than the original site. See https://support.google.com/webmasters/answer/178636?hl=en where after <image:loc> it says:

    In some cases, the image URL may not be on the same domain as your main site. This is fine, as long as both domains are verified in Webmaster Tools…

    But it does not clarify if that verification needs to be by the same owner.

    In any case, your solution might not work because now the urls in the sitemap and the urls on the actual pages do not match. This causes Google to simply ignore the ones in the sitemap.

    Do you have a Google Webmaster Tools account? Do you get any errors/messages there?

    There are some related discussions on Jetpack Photon having a negative impact on SEO like https://www.ads-software.com/support/topic/does-jetpacks-photon-damage-image-seo and https://www.ads-software.com/support/topic/images-not-indexing-with-photon but there is no definite answer.

    On my own site where I use both Photon and have the wp.com urls in the image sitemap locations, I know for a fact that images hosted on the Photon CDN are indexed (go to Google > Images, search for “site:status301.net coolclock”) and even though I’m not sure (did some more queries like that) it looks like most all the images on my site are indexed. But even so my Webmaster Tools account informs me that only 7 of the 55 images in the sitemap are indexed.

    I think this is because of the variations in the CDN subdomain. Like one of the coolclock images that is presented in the sitemap as coming from i0.wp.com appears to be coming from i2.wp.com when that image is opened from the search results page. This different subdomains (i0 – i4) might well explain the difference in reported indexed images and the actual number.

Viewing 1 replies (of 1 total)
  • The topic ‘Sitemap using Photon URLS’ is closed to new replies.