Replacing CDN Image URLs with Original URLs in Sitemap

#937944
  • Resolved illiminium
    Rank Math free

    Dear Rank Math Support Team,

    I hope this message finds you well.

    I am currently facing an issue where my Rank Math-generated sitemap includes Cloudflare CDN URLs for images instead of the original image URLs. I believe that having the original image URLs in the sitemap is a better practice for image SEO, as it improves the chances of my images being indexed and appearing in Google Search.

    To address this, I attempted to add the following code to my theme’s rank-math.php file to replace the CDN URLs with the original URLs in the sitemap:

    [moved to sensitive data section]

    Unfortunately, this code does not seem to resolve the issue, as the sitemap still includes the CDN URLs.

    Could you please advise on how to properly implement this replacement? If there’s a better approach or specific guidance for handling this within Rank Math, I’d greatly appreciate your support.

    Thank you for your time and assistance.

    Best regards,
    Thuy

Viewing 1 replies (of 1 total)
  • Hello,

    It seems that you’ve already created a ticket for this matter and we’ve already replied there. Please check.

    Looking forward to helping you there instead.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Replacing CDN Image URLs with Original URLs in Sitemap’ is closed to new replies.