# Changing discourse from domain to subdomain?

**URL:** <https://meta.discourse.org/t/changing-discourse-from-domain-to-subdomain/151367>\
**Category:** Product Support\
**Created:** [13 במאי,‏ 2020,‏ 7:00pm UTC](https://meta.discourse.org/t/changing-discourse-from-domain-to-subdomain/151367 "2020-05-13T19:00:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@GeorgSeifert](https://meta.discourse.org/u/GeorgSeifert)\
**Post date:** [19 בדצמבר,‏ 2022,‏ 12:32pm UTC](https://meta.discourse.org/t/changing-discourse-from-domain-to-subdomain/151367/6 "2022-12-19T12:32:08Z")

</div>

I moved my forum to a new domain but didn’t run the remap directly and now I get a conflict as there are some poste with the new and the old domain and running the remap will fail.

```plaintext
Error: ERROR: duplicate key value violates unique constraint "unique_post_links"
DETAIL: Key (topic_id, post_id, url)=(23737, 113202, https://MYDOMAIN/) already exists.
The remap has only been partially applied due to the error above. Please re-run the script again.

```

ist there a way to ignore this to remap at least everything else. Or can I manually remove that entry and from the database? I did something similar years ago but I can’t find how to get into `pgsql`.

---

_[View the full topic](https://meta.discourse.org/t/changing-discourse-from-domain-to-subdomain/151367)._
