# 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:** [July 24, 2016, 5:43pm 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:** 14

<div class="post-metadata">

**Author:** ![victoria](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@victoria](https://meta.discourse.org/u/victoria)\
**Post date:** [July 26, 2016, 10:27am UTC](https://meta.discourse.org/t/broken-image-url-paths-after-changing-hostname/47722/14 "2016-07-26T10:27:57Z")

</div>

Got it to work now and pictures are back on the forum, here was how:

```
-udiscourse RAILS_ENV=production bundle exec ./script/discourse remap <old> <new>

```

Thanks for all the help! 😍

---

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