# All internal links broken after restoring backup to new server

**URL:** <https://meta.discourse.org/t/all-internal-links-broken-after-restoring-backup-to-new-server/155829>\
**Category:** Product Support\
**Created:** [24 ביוני,‏ 2020,‏ 3:48pm UTC](https://meta.discourse.org/t/all-internal-links-broken-after-restoring-backup-to-new-server/155829 "2020-06-24T15:48:33Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![meriksson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meriksson/32/66712_2.png) [@meriksson](https://meta.discourse.org/u/meriksson)\
**Post date:** [24 ביוני,‏ 2020,‏ 3:48pm UTC](https://meta.discourse.org/t/all-internal-links-broken-after-restoring-backup-to-new-server/155829/1 "2020-06-24T15:48:34Z")

</div>

I recently moved a forum from one server to another. A few days later I discovered that all internal links have been changed and are now broken.

I am not completely sure, but here is what I think happened:

The forum lives on [forum.example.org](http://forum.example.org) but when I was doing the migration to a new server, I initially set the new instance up as [temp.example.org](http://temp.example.org), so I could access it for testing without inconveniancing the users by taking down the old instance. Once I saw that the new instance was working, I reconfigured it as [forum.example.org](http://forum.example.org), did the DNS change etc.

Now I discover that internal links have been changed. Old links such as [https://forum.example.org/t/example-topic/1](https://forum.example.org/t/example-topic/1) are changed to [https://temp.example.org/t/example-topic/1](https://forum.example.org/t/example-topic/1) and this means that they are broken, since [temp.example.org](http://temp.example.org) does not exist. As far as I can tell this has been done to every single link in the database.

What happened here? Did the import/restore process change all the links to include the then current (temporary) domain name?

How can I reverse this, i.e. change the domains on all the links back to the original name?

---

_[View the full topic](https://meta.discourse.org/t/all-internal-links-broken-after-restoring-backup-to-new-server/155829)._
