# WP Discourse - Relinking Comments After Moving Blog

**URL:** https://meta.discourse.org/t/wp-discourse-relinking-comments-after-moving-blog/81942
**Category:** WordPress
**Created:** [3월 2, 2018, 2:03오전 UTC](https://meta.discourse.org/t/wp-discourse-relinking-comments-after-moving-blog/81942 "2018-03-02T02:03:45Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [3월 2, 2018, 2:49오전 UTC](https://meta.discourse.org/t/wp-discourse-relinking-comments-after-moving-blog/81942/2 "2018-03-02T02:49:54Z")

</div>

You would be able to update everything except for the `TopicEmbed.embed_url` values by republishing the posts from WordPress to Discourse after you change the WordPress domain name. If you take that approach, you’ll need to loop through the `TopicEmbeds` on your forum and update the `embed_url` for each one.

A faster, but possibly more dangerous approach would be to use the Discourse `remap` script. You can find details about using it in this topic: [Change the domain name or rename your Discourse](https://meta.discourse.org/t/change-the-domain-name-or-rename-my-discourse/16098)

Running `discourse remap domain.com blog.domain.com` will rewrite all occurrences of `domain.com` in your database. Be sure to save a backup of your database before you try it.

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-relinking-comments-after-moving-blog/81942)._
