# I link alle immagini puntano al sottodominio errato (precedente) dopo la migrazione

**URL:** <https://meta.discourse.org/t/image-links-point-to-incorrect-previous-subdomain-after-migration/77884>\
**Category:** Product Support\
**Created:** [12 Gennaio 2018, 8:05pm UTC](https://meta.discourse.org/t/image-links-point-to-incorrect-previous-subdomain-after-migration/77884 "2018-01-12T20:05:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![SouperC](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/souperc/32/62875_2.png) [@SouperC](https://meta.discourse.org/u/SouperC)\
**Post date:** [12 Gennaio 2018, 8:05pm UTC](https://meta.discourse.org/t/image-links-point-to-incorrect-previous-subdomain-after-migration/77884/1 "2018-01-12T20:05:34Z")

</div>

I migrated my discourse install from one host to another yesterday and I’ve come across a peculiar issue.  
During the migration, I created a forums2 subomain, assigned what would be the new IP for the forums to it then moved the DB and files over.

Once that was done and working, I updated forums2 subdomain name to “forums”

It’s been behaving pretty well, but I noticed a strange issue with the images in this topic:

> **[\[For Fun\] Alternate uses for Kart Motors](https://forums.kartpulse.com/t/for-fun-alternate-uses-for-kart-motors/830)**
>
> \[image\]\[image\]\[image\]\[image\]\[image\]

The images are not visible and the the HTML points to forums2 as being the image source. Yet if I edit the post, the images are visible and only refer to the relative url path.

An ideas how I might have caused this, or how I can resolve it. I rebaked the posts, that didn’t seem to help.  
I noticed the domain was incorrect in my app.yml, fixed, rebuilt, but the problem persists.

---

_[View the full topic](https://meta.discourse.org/t/image-links-point-to-incorrect-previous-subdomain-after-migration/77884)._
