# Having an issue after changing domain

**URL:** https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094
**Category:** Support
**Created:** [9월 30, 2017, 4:33오후 UTC](https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094 "2017-09-30T16:33:16Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![DonaldH](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@DonaldH](https://meta.discourse.org/u/DonaldH)
#### Post date: [9월 30, 2017, 4:33오후 UTC](https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094/1 "2017-09-30T16:33:16Z")

</div>

Hello

I changed my forum domain and have encountered the following issue when doing a password reset:

 ![alt text](https://global.discourse-cdn.com/meta/original/4X/f/c/b/fcbc4bb20b086a2b1af06fdf18ea84961378d551.png)

As you can see, at the bottom of the email it is still using the old domain in the reset link. I was able to reset my password by just substituting the new domain, but how can I fix this so it doesn’t happen with other users?

Thank you

---

<div class="post-metadata">

### Author: ![wiliamjoaquim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wiliamjoaquim/32/71571_2.png) [@wiliamjoaquim](https://meta.discourse.org/u/wiliamjoaquim)
#### Post date: [9월 30, 2017, 4:34오후 UTC](https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094/2 "2017-09-30T16:34:45Z")

</div>

Changed the company domain in settings?

---

<div class="post-metadata">

### Author: ![DonaldH](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@DonaldH](https://meta.discourse.org/u/DonaldH)
#### Post date: [9월 30, 2017, 4:37오후 UTC](https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094/3 "2017-09-30T16:37:07Z")

</div>

Yes I have gone through and changed all the settings.

---

<div class="post-metadata">

### Author: ![wiliamjoaquim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wiliamjoaquim/32/71571_2.png) [@wiliamjoaquim](https://meta.discourse.org/u/wiliamjoaquim)
#### Post date: [9월 30, 2017, 4:38오후 UTC](https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094/4 "2017-09-30T16:38:24Z")

</div>

I believe it has changed in the app.yml, rebuilt correct?

---

<div class="post-metadata">

### Author: ![DonaldH](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@DonaldH](https://meta.discourse.org/u/DonaldH)
#### Post date: [9월 30, 2017, 4:40오후 UTC](https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094/5 "2017-09-30T16:40:14Z")

</div>

Yes, I followed Jeff’s instructions here: [Change the domain name or rename your Discourse](https://meta.discourse.org/t/change-the-domain-name-or-rename-my-discourse/16098)

Or at least I think I did. I’m receiving emails to the correct address, anyhow.

---

<div class="post-metadata">

### Author: ![DonaldH](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@DonaldH](https://meta.discourse.org/u/DonaldH)
#### Post date: [9월 30, 2017, 4:47오후 UTC](https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094/6 "2017-09-30T16:47:21Z")

</div>

I also just noticed on the Terms of Service page at /t/terms-of-service/4 that all references to the domain have updated but references to the company name have not.

To clarify what I did with app.yml, I did

```
./launcher enter app
discourse remap forum.olddomain.org discuss.newdomain.org
rake posts:rebake

```

and also

```
./launcher enter app
discourse remap olddomain.org newdomain.org
rake posts:rebake

```

---

<div class="post-metadata">

### Author: ![DonaldH](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@DonaldH](https://meta.discourse.org/u/DonaldH)
#### Post date: [9월 30, 2017, 4:53오후 UTC](https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094/7 "2017-09-30T16:53:49Z")

</div>

Oh wait, I can see what I have done wrong. I haven’t edited the hostname line in app.yml.

---

<div class="post-metadata">

### Author: ![wiliamjoaquim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wiliamjoaquim/32/71571_2.png) [@wiliamjoaquim](https://meta.discourse.org/u/wiliamjoaquim)
#### Post date: [9월 30, 2017, 4:57오후 UTC](https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094/8 "2017-09-30T16:57:55Z")

</div>

Edit is app.yml

```
cd /var/discourse
sudo nano containers/app.yml

```

Edit  
**Hostname for your Discourse? [[discourse.example.com](http://discourse.example.com)]:**

Aperte `ctrl + x` depois `y` e `ENTER`

sudo ./launcher rebuild app

---

<div class="post-metadata">

### Author: ![DonaldH](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@DonaldH](https://meta.discourse.org/u/DonaldH)
#### Post date: [9월 30, 2017, 5:24오후 UTC](https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094/9 "2017-09-30T17:24:00Z")

</div>

Got it working! Thanks a lot.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [9월 30, 2017, 7:36오후 UTC](https://meta.discourse.org/t/having-an-issue-after-changing-domain/71094/10 "2017-09-30T19:36:57Z")

</div>


