# Remap failure when changing discourse domain

**URL:** https://meta.discourse.org/t/remap-failure-when-changing-discourse-domain/306470
**Category:** Self-hosting
**Created:** [May 2, 2024, 1:10pm UTC](https://meta.discourse.org/t/remap-failure-when-changing-discourse-domain/306470 "2024-05-02T13:10:13Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![fpoulain](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fpoulain/32/251282_2.png) [@fpoulain](https://meta.discourse.org/u/fpoulain)
#### Post date: [May 2, 2024, 1:15pm UTC](https://meta.discourse.org/t/remap-failure-when-changing-discourse-domain/306470/2 "2024-05-02T13:15:24Z")

</div>

> [@fpoulain](#):
>
> `discourse remap talk.foo.com talk.bar.com`

If I correctly understand the problem _a posteriori_, the [doc](https://meta.discourse.org/t/change-the-domain-name-or-rename-your-discourse/16098) could suggest to remove all old occurrences of `talk.bar.com` prior to launch this command. It could simply done via

```plaintext
discourse remap talk.bar.com talk.foo-or-bar-that-s-the-question.com

```

(I didn’t tried.)

---

_[View the full topic](https://meta.discourse.org/t/remap-failure-when-changing-discourse-domain/306470)._
