# 是否可以在主网站同一域名上安装 Discourse

**URL:** <https://meta.discourse.org/t/is-it-possible-to-install-discourse-on-the-same-domain-of-your-main-website/127903>\
**Category:** WordPress\
**Created:** [2019年九月7日 18:42 UTC](https://meta.discourse.org/t/is-it-possible-to-install-discourse-on-the-same-domain-of-your-main-website/127903 "2019-09-07T18:42:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2019年九月7日 18:52 UTC](https://meta.discourse.org/t/is-it-possible-to-install-discourse-on-the-same-domain-of-your-main-website/127903/2 "2019-09-07T18:52:47Z")

</div>

我认为 HostGator 不提供完整的服务器，因此您需要更换主机才能进行子目录安装（实际上，我认为如果您在前面使用 Cloudflare，或许可以进行子目录安装，但我不确定是否有人这样做过）。

子目录安装并不推荐，而且似乎很少有人仍然相信这样做对 SEO 有优势。但如果您想尝试，可以查看 [Serve Discourse from a subfolder (path prefix) instead of a subdomain](https://meta.discourse.org/t/subfolder-support-with-docker/30507)

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-install-discourse-on-the-same-domain-of-your-main-website/127903)._
