CDN URL breaking filters
-
Why does this filter not work?
It doesn’t work probably because it is a CDN thing – but you think it would. The thing that sucks is Facebook does not show CDN in content and there is no way to change the go:image back to the not CDN url. why? I mean if I change the url manually in the SEO box to https://asdf.com and then use the filter to change it from http to https the filter works fine but with this CDN url no luck.
Total Cache is this because it is overwritten again somewhere?
add_filter( ‘wpseo_opengraph_image’, ‘wpseo_cdn_filter’ );
function wpseo_cdn_filter($uri) {
return str_replace( ‘https://328984a1363d30714de3-dc89c0a2c842806228c703007fb513c6.r70.cf5.rackcdn.com/wp-content/uploads/’, ‘https://ccroanoke.com/wp-content/uploads/’, $uri );
}Please help
- The topic ‘CDN URL breaking filters’ is closed to new replies.