# WP Discourse - Relinking Comments After Moving Blog

**URL:** <https://meta.discourse.org/t/wp-discourse-relinking-comments-after-moving-blog/81942>\
**Category:** WordPress\
**Created:** [2 maart 2018 om 02: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:** 6

<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:** [23 maart 2018 om 03:20 UTC](https://meta.discourse.org/t/wp-discourse-relinking-comments-after-moving-blog/81942/6 "2018-03-23T03:20:36Z")

</div>

> [@yyhmsg](#):
>
> Can I run remap again but do remap /domain.com /blog.domain.com to get it to only match the root domain?

Yes, that should work. You can also use a regular expression. The code for the remap function is here: [discourse/script/discourse at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/script/discourse#L15). The function’s description gives some details about using regular expressions.

---

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