# Broken image URL paths after changing hostname

**URL:** <https://meta.discourse.org/t/broken-image-url-paths-after-changing-hostname/47722>\
**Category:** Product Support\
**Created:** [24.Июль.2016 17:43:29 UTC](https://meta.discourse.org/t/broken-image-url-paths-after-changing-hostname/47722 "2016-07-24T17:43:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![andy1247008998](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@andy1247008998](https://meta.discourse.org/u/andy1247008998)\
**Post date:** [24.Июль.2016 17:43:29 UTC](https://meta.discourse.org/t/broken-image-url-paths-after-changing-hostname/47722/1 "2016-07-24T17:43:29Z")

</div>

Here’s how to reproduce this bug:

1. ./launcher bootstrap app with `a.com` as hostname in app.yml
2. Upload a picture in a post. Let’s say it is `http://a.com/uploads/default/original/xxxx.png`
3. ./launcher rebuild app with `b.com` as hostname in app.yml
4. Open the post in Step 2, you will see a broken picture.
5. You will find that the picture is still refer to `http://a.com/uploads/default/original/xxxx.png` but not `b.com`
6. If you edit the post, the preview on the right side shows the picture correctly

This bug remains even if you destroy and bootstrap again.

Another way to produce this bug:

1. Back up `a.com`
2. Upload and restore to `b.com`
3. Pictures are broken

---

_[View the full topic](https://meta.discourse.org/t/broken-image-url-paths-after-changing-hostname/47722)._
