# Broken image URL paths after changing hostname

**URL:** https://meta.discourse.org/t/broken-image-url-paths-after-changing-hostname/47722
**Category:** Support
**Created:** [24 يوليو 2016، 5:43م 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:** 4

<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: [24 يوليو 2016، 9:17م UTC](https://meta.discourse.org/t/broken-image-url-paths-after-changing-hostname/47722/4 "2016-07-24T21:17:04Z")

</div>

The URLs of the uploads are “_optimized_” (i.e. made absolute and use CDN when enabled) when cooking a post for performance reasons. The solution to your problem is indeed a remap. More can be found here

> [@Change the domain name or rename your Discourse](https://meta.discourse.org/t/change-the-domain-name-or-rename-my-discourse/16098):
>
> bookmark This guide explains how-to change the domain name of your Discourse site, and includes information about setting up DNS changes, editing configuration files, updating site settings, and correcting social logins and post content to reflect your new domain name. warning This guide is for self-hosted Discourse instances that were installed using our [installation guide on GitHub](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md). If you are [hosted by Discourse](https://www.discourse.org/pricing), please see [Configure your domain name for hosted Discourse](https://meta.discourse.org/t/configure-your-domain-name-for-hosted-discourse/21827) for specific …

---

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