# Install Discourse as subfolder within Wordpress website?

**URL:** https://meta.discourse.org/t/install-discourse-as-subfolder-within-wordpress-website/50955
**Category:** Self-hosting
**Created:** [October 1, 2016, 6:37pm UTC](https://meta.discourse.org/t/install-discourse-as-subfolder-within-wordpress-website/50955 "2016-10-01T18:37:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Philipp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/philipp/32/62294_2.png) [@Philipp](https://meta.discourse.org/u/Philipp)
#### Post date: [October 1, 2016, 6:37pm UTC](https://meta.discourse.org/t/install-discourse-as-subfolder-within-wordpress-website/50955/1 "2016-10-01T18:37:12Z")

</div>

Hi!  
I am currently running a Wordpress website with a forum based on bbpress.  
I am thinking about migrating to Discourse.  
Currently my forum is integrated seemlessly. Its domain is [www.mydomain.com/forum](http://www.mydomain.com/forum)

So far all Discourse installations I’ve seen are available under an own subdomain such as [meta.discourse.org](http://meta.discourse.org)  
I wonder if it’s possible to install discourse and set it’s root to [www.mydomain.com/forum](http://www.mydomain.com/forum)  
Has anyone tried this?

Thanks, Philipp

---

<div class="post-metadata">

### Author: ![Chopper](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chopper/32/57073_2.png) [@Chopper](https://meta.discourse.org/u/Chopper)
#### Post date: [October 1, 2016, 6:47pm UTC](https://meta.discourse.org/t/install-discourse-as-subfolder-within-wordpress-website/50955/2 "2016-10-01T18:47:38Z")

</div>

Check this post :

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

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 2, 2016, 12:21am UTC](https://meta.discourse.org/t/install-discourse-as-subfolder-within-wordpress-website/50955/3 "2016-10-02T00:21:37Z")

</div>

Keep in mind subfolder install are possible but aren’t encouraged. You are adding a bunch of complexity and getting exposed to more possible bugs for no good reason.

---

<div class="post-metadata">

### Author: ![jmg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jmg/32/121440_2.png) [@jmg](https://meta.discourse.org/u/jmg)
#### Post date: [October 2, 2016, 3:47am UTC](https://meta.discourse.org/t/install-discourse-as-subfolder-within-wordpress-website/50955/4 "2016-10-02T03:47:19Z")

</div>

For Discourse on a different server than the rest of the website, which is a frequent installation, subfolder seems especially complex (anyway there is a [howto](https://meta.discourse.org/t/discourse-in-a-subfolder-multiple-servers-sharing-a-domain/30514)) and subdomain is much easier and recommended.

On the other hand, for Discourse on the same virtual server than the rest of the site, subfolder is not so difficult. See the [howto](https://meta.discourse.org/t/subfolder-support-with-docker/30507) mentioned on post 2.

Of course the easiest Discourse installation is the normal one, subdomain.
