# Image uploads path in posts will not change after rebake and remap

**URL:** <https://meta.discourse.org/t/image-uploads-path-in-posts-will-not-change-after-rebake-and-remap/146806>\
**Category:** Product Support\
**Created:** [April 4, 2020, 12:06pm UTC](https://meta.discourse.org/t/image-uploads-path-in-posts-will-not-change-after-rebake-and-remap/146806 "2020-04-04T12:06:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Nelsonius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nelsonius/32/175657_2.png) [@Nelsonius](https://meta.discourse.org/u/Nelsonius)\
**Post date:** [April 4, 2020, 12:06pm UTC](https://meta.discourse.org/t/image-uploads-path-in-posts-will-not-change-after-rebake-and-remap/146806/1 "2020-04-04T12:06:02Z")

</div>

Hi there guys,

I’m moving a Discourse installation to a new server. The domain stays the same, but we have moved all old image uploads to a S3 digital ocean spaces with RCLONE. Did a clean discourse install, uploaded a backup without images. So far so good, all posts are there.

It is working with new uploads, but i am having a hard time rerouting old uploads in posts to this new location.

The old location was domain[dot]com/uploads/  
The new location is a space.ams3.digitaloceanspaces[dot]com/

I have tried remapping:  
discourse remap [olddomain.com/uploads/](http://olddomain.com/uploads/) [space.ams3.digitaloceanspaces.com/](http://space.ams3.digitaloceanspaces.com/)

and i have tried:  
rake posts:rebake  
rake posts:rebake\_match[“uploads”]

The paths that old images are linking to is still the old domain path. Seems like the remap and the rebake had no effect. Am i missing something obvious here?

---

_[View the full topic](https://meta.discourse.org/t/image-uploads-path-in-posts-will-not-change-after-rebake-and-remap/146806)._
