# 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:** 2

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [13 במאי,‏ 2020,‏ 7:07pm UTC](https://meta.discourse.org/t/changing-discourse-from-domain-to-subdomain/151367/2 "2020-05-13T19:07:42Z")

</div>

> [@Jason\_Rybka](#):
>
> The instructions mention removing the old domain name from site settings, but the domain name will in fact be a subdomain of the same domain, so I’m not sure how that would be done.

Technically, `sub.example.com` is different than `example.com` despite being part of same domain. You can safely follow those instructions replacing `example.com` with `discourse.example.com` and it will migrate your forum to the subdomain.

Apart from rebuild the remap command should be:

> `discourse remap example.com discourse.example.com`

---

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