# Disable CDN causes old images with CDN URL can not be shown

**URL:** <https://meta.discourse.org/t/disable-cdn-causes-old-images-with-cdn-url-can-not-be-shown/29657>\
**Category:** Product Support\
**Created:** [4 يونيو 2015، 4:25م UTC](https://meta.discourse.org/t/disable-cdn-causes-old-images-with-cdn-url-can-not-be-shown/29657 "2015-06-04T16:25:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![trandatnh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trandatnh/32/115055_2.png) [@trandatnh](https://meta.discourse.org/u/trandatnh)\
**Post date:** [4 يونيو 2015، 4:25م UTC](https://meta.discourse.org/t/disable-cdn-causes-old-images-with-cdn-url-can-not-be-shown/29657/1 "2015-06-04T16:25:37Z")

</div>

I’ve just disabled CDN to save the cost. However, all the old images, which is uploaded while I was using cloudfront, are failed to load.

For example:

I have CDN URL is `cdn.mydomain.com`. After disabling CDN, the `cdn.mydomain.com` is invalid so that all the images should start with `mydomain.com` instead.

**Is there anyway to convert all those urls programmatically?**

* * *

Note: I am going to use S3 to store all my images. Can I just make use of this opportunity to convert everything from cdn to s3 url?

---

_[View the full topic](https://meta.discourse.org/t/disable-cdn-causes-old-images-with-cdn-url-can-not-be-shown/29657)._
