I have successfully installed and configured Bunny CDN and mapped it to ramset.com.au. The images and necessary files are loading from the Bunny CDN to the ramset.com.au website without any issues.
However, on ramset.co.nz, the images are not loading through the CDN. I need to configure Bunny CDN for ramset.co.nz. We have been able to create a separate CDN configuration, but we are facing difficulties in adding it for the NZ site. Could you please review and provide guidance on how to configure it for the NZ site?
Thank you for contacting WPML support, I'd be happy to help you with this issue.
Please try the workaround below and let me know if it helps:
❌ IMPORTANT: Please backup your database and website before proceeding ❌
- Edit the file wp-content/plugins/bunnycdn/inc/bunnycdnFilter.php
- Around line 74-78, replace the code
// If this is NOT a relative URL
if (strstr($foundUrl, $this->baseUrl))
{
return str_replace($this->baseUrl, $this->cdnUrl, $foundUrl);
}
As per your advice, we have made changes to the two codes on lines 74-78 and 92 in the staging site. However, I am still observing that the images and files for stg.ramset.co.nz are not being served from the Bunny CDN URL as expected. Please provide further guidance on the next steps to address this issue.
URL: hidden link