Some HTTPS links not rewritten

Hi all, I’ve taken over a website but have no access to the hosting for another few weeks. The website was built in 2009 so you can imagine the fun I’m having using Cloudflare to add a CMP, GA4, caching and to move it from HTTP to HTTPS.

The latter is causing me some issues. I’ve enabled “Always Use HTTPS” and “Automatic HTTPS Rewrites” but some elements won’t change and I’m running in Development Mode. Some examples:

Main code:

<meta property=“og:url” content="http://www.
<meta property=“og:image” content="http://www.

Site Map:

http://www.etc
http://www.etc……

I just wondered if anyone had any workarounds. I’ve searched to no avail. If I was able to replace matching code that would be a start…

This HTML Rewrite Worker should get you started. It does a search/replace for hostnames, but you should be able to include the schema, as well. It’s also configured for a and img tags, so you’d have to add meta with “source” as well. At least that’s my take on how it works.

Thanks! That looks to be what I need.

What would your take be on our sitemap file - it’s structured like this:

<url>
<loc>http://www.example.com/</loc>
</url>
<url>
<...

I should add this is part of an XML file.