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

<div class="post-metadata">

**Author:** ![Jason\_Rybka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jason_rybka/32/179188_2.png) [@Jason\_Rybka](https://meta.discourse.org/u/Jason_Rybka)\
**Post date:** [13 במאי,‏ 2020,‏ 7:00pm UTC](https://meta.discourse.org/t/changing-discourse-from-domain-to-subdomain/151367/1 "2020-05-13T19:00:11Z")

</div>

Hello there, and sorry I know this has been asked in the past. I’ve tried to do diligent research on the matter, and in doing so looked at several existing threads, including this one:

> [@Change the domain name or rename your Discourse](https://meta.discourse.org/t/change-the-domain-name-or-rename-my-discourse/16098):
>
> bookmark This guide explains how-to change the domain name of your Discourse site, and includes information about setting up DNS changes, editing configuration files, updating site settings, and correcting social logins and post content to reflect your new domain name. warning This guide is for self-hosted Discourse instances that were installed using our [installation guide on GitHub](https://github.com/discourse/discourse/blob/main/docs/INSTALL-cloud.md). If you are [hosted by Discourse](https://www.discourse.org/pricing), please see [Configure your domain name for hosted Discourse](https://meta.discourse.org/t/configure-your-domain-name-for-hosted-discourse/21827) for specific …

I guess I’m not following 100% because the situation isn’t exact or close enough to my own. In my case I installed Discourse on the main domain, thinking we would use it exclusively. So the install is at `example.com` and I’d like to change it to be at `discourse.example.com`, and then install a blog for the main domain (separate server).

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.

Does this mean I’ll need to edit the app.yml for the domain name, which seems pretty straightforward, and then remap, rake posts, rebake as indicated in referred post?

Thanks in advance for any additional details you may have to offer, I appreciate it.

---

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