# Images broken in WP-Discourse after Discourse URL change

**URL:** https://meta.discourse.org/t/images-broken-in-wp-discourse-after-discourse-url-change/98281
**Category:** WordPress
**Created:** [9월 28, 2018, 2:28오후 UTC](https://meta.discourse.org/t/images-broken-in-wp-discourse-after-discourse-url-change/98281 "2018-09-28T14:28:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [9월 28, 2018, 2:28오후 UTC](https://meta.discourse.org/t/images-broken-in-wp-discourse-after-discourse-url-change/98281/1 "2018-09-28T14:28:15Z")

</div>

Some time ago I changed the URL of my Discourse instance. Since then, I get 404 errors on avatars on WP-discourse comments. They are still pointing to the old URL of Discourse. I’ve made the change in the WP-Discourse plugin, and everything is working with the API and even web hooks. It’s just the images that point to the old location.

I’ve tried clearing the cache, etc. Any ideas on how to resolve this?

Thanks.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [9월 28, 2018, 4:13오후 UTC](https://meta.discourse.org/t/images-broken-in-wp-discourse-after-discourse-url-change/98281/2 "2018-09-28T16:13:37Z")

</div>

You’re going to need to update your wordpress database to point to the new URLs, AFAIK they’re stored as absolute paths, not relative.

Did you update the discourse\_permalink field in wp\_postmeta too for your older posts?

---

<div class="post-metadata">

### Author: ![jtbayly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jtbayly/32/119510_2.png) [@jtbayly](https://meta.discourse.org/u/jtbayly)
#### Post date: [9월 28, 2018, 5:08오후 UTC](https://meta.discourse.org/t/images-broken-in-wp-discourse-after-discourse-url-change/98281/3 "2018-09-28T17:08:50Z")

</div>

I’ll check that.

New posts seem to work fine.

ETA: yes, that fixes it.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [10월 28, 2018, 5:08오후 UTC](https://meta.discourse.org/t/images-broken-in-wp-discourse-after-discourse-url-change/98281/4 "2018-10-28T17:08:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
