# Upload links broken after S3 bucket change

**URL:** https://meta.discourse.org/t/upload-links-broken-after-s3-bucket-change/108351
**Category:** Support
**Created:** [February 5, 2019, 12:24am UTC](https://meta.discourse.org/t/upload-links-broken-after-s3-bucket-change/108351 "2019-02-05T00:24:29Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [February 6, 2019, 2:51pm UTC](https://meta.discourse.org/t/upload-links-broken-after-s3-bucket-change/108351/2 "2019-02-06T14:51:24Z")

</div>

A `rebake` is not enough, you’ll have to [do a `remap`](https://meta.discourse.org/t/replace-a-string-in-all-posts/48729) to change all the existing URLs.

```
discourse remap //my-new-bucket.s3.dualstack.us-east-1.amazonaws.com //my-new-bucket.s3.dualstack.us-west-2.amazonaws.com

```

---

_[View the full topic](https://meta.discourse.org/t/upload-links-broken-after-s3-bucket-change/108351)._
