SouperC migrated their Discourse instance from a subdomain forums2 to forums, but after the move, image links in posts still pointed to the old forums2 subdomain, even though editing posts showed correct relative paths. Rebaking posts and correcting app.yml didn’t resolve the issue. itsbhanusharma suggested checking a meta thread about tombstoned images, but SouperC suspected the issue stemmed from the migration process itself. After further troubleshooting, Falco pointed to a guide on changing domain names, specifically the “remap and rebake” step, which SouperC confirmed fixed the problem. One lingering image (a non-custom emoji in a banner) still referenced the old domain, but it was deemed a minor, non-critical issue. Temporary workaround: keeping forums2 pointing to the same IP as forums ensured images remained visible during troubleshooting.
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:
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.
Update, rebuilding the app after correcting app.yml did not fix the image links. The still point to forums2 subdomain.
I’m guessing this has something to do with the initial import being done when it was still under that subdomain? Any ideas on how I can fix this?
Here’s an example again. You can see the source for the images points to forums2.kartpulse.com
For now I have the forums2 subdomain pointed to the same IP as forums to the images will at least appear.
Thanks Rafael, “remap and rebake” portion is what I was missing.
I caught one emoji image (Non custom emoji) in a banner topic that the domain stayed with the old one. Not sure why or how, but it’s really not an issue, more of an FYI.