WordPress, Offload Media, Cloudflare DNS and CNAME with DO Spaces?

Posted September 15, 2019 1.5k views

I have a WordPress site that currently uses the Offload Media plugin to move thousands of images to an AWS S3 bucket. I have my DNS hosted by Cloudflare and use their CDN and have a CNAME entry that points to my S3 bucket.

I want to use Digital Ocean Spaces instead of the S3 bucket. The Offload Media plugin renames the URL of all my images to, the S3 bucket is called, and the CNAME pointer on Cloudflare points to the

I’ve created a Space called domainname-com and can change the CNAME pointer to the Spaces endpoint name (not using Spaces CDN) so that the CNAME points to Spaces bucket with images. IF Offload Media continues to create URL’s for the images that same as it does today (i.e. - 1) will this work? and 2) will Google SEO not notice that the bucket has changed since the URL naming is the same?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


I believe that your approach should work as expected. To be on the safe side I would also recommend going through this on how to use DigitalOcean Spaces with Wordpress and WP Offload Media and make sure that you have all of the things setup:

Also, this should not affect your SEO as the content would still be delivered from the same domain name.


by Hanif Jetha
In this Solutions guide, we'll demonstrate how to offload your WordPress Media Library and other static assets to DigitalOcean Spaces, and deliver these to end users using the DigitalOcean Spaces CDN.
  • Thanks for the response and the answer.

    As it turns out, I have a different problem that is keeping me from moving forward. I use Cloudflare to both host my domain and act as my CDN. Cloudflare requires that the bucket have a name and a CNAME of “” and Digital Ocean Spaces naming conventions prevent a bucket name with a “.” only alphanumeric and dashes.

    So unless I want to ditch Cloudflare (which I do not) there is no path forward with DO Spaces.