# Switching forum from subdomain to sub directory

**URL:** https://meta.discourse.org/t/switching-forum-from-subdomain-to-sub-directory/59845
**Category:** Support
**Created:** [March 24, 2017, 1:43pm UTC](https://meta.discourse.org/t/switching-forum-from-subdomain-to-sub-directory/59845 "2017-03-24T13:43:18Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [March 26, 2017, 4:53pm UTC](https://meta.discourse.org/t/switching-forum-from-subdomain-to-sub-directory/59845/9 "2017-03-26T16:53:36Z")

</div>

If you _really_ like shooting yourself in the foot, these guides should help you to aim:

> [@Serve Discourse from a subfolder (path prefix) instead of a subdomain](https://meta.discourse.org/t/subfolder-support-with-docker/30507):
>
> warning Discourse Official Statement about Subfolder setup We support subfolder setups for our hosted customers at the enterprise level and up. Due to heavy technical setup complexity we strongly recommend you do not use this setup unless you are very experienced in custom subfolder setups. It is critical you have a deep understanding of NGINX setup in the Discourse Docker container Secure original IP forwarding using custom headers in the proxy chain Rate limiting in front proxy server I…

> [@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 …

In the `remap` step, you have to find a replacement that not only updates the hostname, but also inserts the path. This will be tricky, and probably require a few restores and retries until you get it right.

---

_[View the full topic](https://meta.discourse.org/t/switching-forum-from-subdomain-to-sub-directory/59845)._
