# Changed subdomain/domain and can't get Discourse ID to work

**URL:** https://meta.discourse.org/t/changed-subdomain-domain-and-cant-get-discourse-id-to-work/395470
**Category:** Support
**Tags:** discourse-id
**Created:** [February 8, 2026, 12:57pm UTC](https://meta.discourse.org/t/changed-subdomain-domain-and-cant-get-discourse-id-to-work/395470 "2026-02-08T12:57:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![stephtara](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephtara/32/517827_2.png) [@stephtara](https://meta.discourse.org/u/stephtara)
#### Post date: [February 8, 2026, 12:57pm UTC](https://meta.discourse.org/t/changed-subdomain-domain-and-cant-get-discourse-id-to-work/395470/1 "2026-02-08T12:57:42Z")

</div>

Discourse moved from [sub1.domain1.com](http://sub1.domain1.com) to [sub2.domain2.com](http://sub2.domain2.com). Links etc seem ok, I can log in with the admin account, but I can’t do it with Discourse ID. I tried removing that Discourse from my Discourse ID list to “start fresh” but it’s still not working. When I click on “log in with Discourse ID” I get this:

 ![Screenshot 2026-02-08 at 13.57.03](https://global.discourse-cdn.com/meta/original/4X/8/a/f/8af535fd31089d7e015631d039b08c5ab66e3565.png)

Any suggestions for how to fix this?

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [February 8, 2026, 1:04pm UTC](https://meta.discourse.org/t/changed-subdomain-domain-and-cant-get-discourse-id-to-work/395470/2 "2026-02-08T13:04:36Z")

</div>

Hmm… perhaps try this?

> [@Changing domain names prevents Discourse ID from working](https://meta.discourse.org/t/changing-domain-names-prevents-discourse-id-from-working/386102/3):
>
> I executed the following commands to clear the ID and secret, and then re-enabled Discourse ID, which resolved the issue.
> 
> ```plaintext
> ./launcher enter app
> rails c
> SiteSetting.discourse_id_client_id = ""
> SiteSetting.discourse_id_client_secret = ""
> 
> ```

---

<div class="post-metadata">

### Author: ![stephtara](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephtara/32/517827_2.png) [@stephtara](https://meta.discourse.org/u/stephtara)
#### Post date: [February 8, 2026, 1:23pm UTC](https://meta.discourse.org/t/changed-subdomain-domain-and-cant-get-discourse-id-to-work/395470/3 "2026-02-08T13:23:12Z")

</div>

Thanks!! Seems to have fixed it.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [March 10, 2026, 1:23pm UTC](https://meta.discourse.org/t/changed-subdomain-domain-and-cant-get-discourse-id-to-work/395470/4 "2026-03-10T13:23:47Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
