• Resolved Monitor Teknologi

    (@monitorteknologi)


    I installed the cdn jetpack image on my site . But after a few days I used it. This makes the search console not index images on my site.

    Then I look for a solution, using the code snippet that is stored in the functions.php file

    The code is like this:

    function wpseo_cdn_filter( $uri ) {
    	return str_replace( 'https://example.com', 'https://cdn.example.com', $uri );
    }
    add_filter( 'wpseo_xml_sitemap_img_src', 'wpseo_cdn_filter' );

    I realize that this code can only be used for 1 CDN URL while Jetpack uses multiple CDN URLs. How to fix it!

    • This topic was modified 4 years, 9 months ago by James Huff. Reason: redundant link removed

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor James Huff

    (@macmanx)

    Our CDN blocks search engines from indexing it, so the only way around that would be to not use our CDN.

    With that said though, anything uploaded in WordPress has an attachment page, and most SEO or Sitemap plugins (including ours https://jetpack.com/support/sitemaps/ ) will add those to their sitemap for search engines.

    Thread Starter Monitor Teknologi

    (@monitorteknologi)

    Is this problem, will have an impact on my site’s seo score

    Plugin Contributor James Huff

    (@macmanx)

    It won’t have an impact on site’s SEO score, thousands (maybe millions) of sites use CDNs which operate exactly like this.

    If you are still concerned though, I recommend that you don’t use our image CDN.

    Thread Starter Monitor Teknologi

    (@monitorteknologi)

    Thank for your support. If this doesn’t affect my website’s seo score, I will still use it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Jetpack Makes Search Console Cannot Index Images’ is closed to new replies.