• Resolved Share Textures

    (@1826koxp)


    Hello, I’m using YOAST SEO more than a year and none of my image files indexed to Google.

    It’s kinda sad. I research about it and find this code in your support forum. And edited it like below. Am I doing it right? How can I sure, it is working or not?

    Why I can not see my image-sitemap.xml ? ( https://www.sharetextures.com/sitemap_index.xml)

    function wpseo_cdn_filter($uri) {
      return str_replace('https://www.sharetextures.com', 'https://i0.wp.com/www.sharetextures.com/', $uri);
    }
    
    add_filter( 'wpseo_xml_sitemap_img_src', 'wpseo_cdn_filter' );

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support amboutwe

    (@amboutwe)

    First, the code has a small (probably not related issue). The original URL does not include a trailing slash whereas the replacement URL does have a trailing slash. This causes a duplicate slash in the image URLs example.com//. Making both URLs either include or exclude the trailing slash will fix the URLs.

    Second, Yoast SEO does not create an image sitemap. Instead, images are added to the post and page sitemaps. I checked the post sitemap and see that your images are being included with the double slash URL mentioned above.

    Third, images are indexed and available to appear in search results.
    https://www.google.com/search?q=site:sharetextures.com&tbm=isch

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JETPACK CDN, How Can I test ?’ is closed to new replies.