<p>I've moved all the assets from a local volume to a DigitalOcean space (S3 compatible) and all new entries are using that volume. I've updated all assets fields to use that new location.</p>
<p>My problem is that all the old entries, previous to this change, are still referencing the local volume, even though the same assets are already in the cloud storage.</p>
<p>Is there a way to force Craft to update all assets entries to the new location? When looking at the database, all the older assets are associated with the local volume. I've tried reindexing everything but that didn't solve it. Can someone please point me in the right direction?</p>
<p>Thank you.</p>

CC BY-SA 4.0
2021-04-12T13:47:52.353Z
If string replacement will fix it, you could try using the Find and Replace utility in the admin panel.
Tammy Shipps
CC BY-SA 4.0
2021-04-12T14:59:06.840Z
Thanks. I tried that already but searching for the url string gives back 0 results :/
Frederico Leonardo
CC BY-SA 4.0
2021-04-12T16:52:15.930Z
Are you using any cache tags or something that would make the templates hold onto the old URLs? If you resave an old entry in question, does it update?
RitterKnight
CC BY-SA 4.0
2021-04-12T17:14:50.463Z
Not using any cache but yes, when I update the entry it changes the assets url, but only if I double click the asset and hit save.
Frederico Leonardo
CC BY-SA 4.0
2021-04-15T18:51:20.993Z
If you referred to these images using its absolute path, search replace should do it. But moving forward refer to the step 7 of [this post](https://nystudio107.com/blog/using-aws-s3-buckets-cloudfront-distribution-with-craft-cms#step-7-configure-your-asset-volumes-in-craft-cms) you shall never have this problem again.
Leo Leoncio
CC BY-SA 4.0
2021-04-21T13:54:08.117Z
@Leoncio thank you for your input. I'll keep that in mind.
Frederico Leonardo
<assets>
Changing assets location in entries after moving them to a different volume
# Changing assets location in entries after moving them to a different volume

(Asked by: username_0 on 2021-04-12)

I've moved all the assets from a local volume to a DigitalOcean space (S3 compatible) and all new entries are using that volume. I've updated all assets fields to use that new location.

My problem is that all the old entries, previous to this change, are still referencing the local volume, even though the same assets are already in the cloud storage.

Is there a way to force Craft to update all assets entries to the new location? When looking at the database, all the older assets are associated with the local volume. I've tried reindexing everything but that didn't solve it. Can someone please point me in the right direction?

Thank you.

**Tags:** assets

> **Comments:**
> **username_1**: If string replacement will fix it, you could try using the Find and Replace utility in the admin panel.  
> **username_0**: Thanks. I tried that already but searching for the url string gives back 0 results :/  
> **username_2**: Are you using any cache tags or something that would make the templates hold onto the old URLs? If you resave an old entry in question, does it update?  
> **username_0**: Not using any cache but yes, when I update the entry it changes the assets url, but only if I double click the asset and hit save.  
> **username_3**: If you referred to these images using its absolute path, search replace should do it. But moving forward refer to the step 7 of [this post](https://nystudio107.com/blog/using-aws-s3-buckets-cloudfront-distribution-with-craft-cms#step-7-configure-your-asset-volumes-in-craft-cms) you shall never have this problem again.  
> **username_0**: @Leoncio thank you for your input. I'll keep that in mind.  

---

## 0 answers

