# Put discourse on a sub url

**URL:** <https://meta.discourse.org/t/put-discourse-on-a-sub-url/157052>\
**Category:** Product Support\
**Created:** [July 7, 2020, 4:39pm UTC](https://meta.discourse.org/t/put-discourse-on-a-sub-url/157052 "2020-07-07T16:39:59Z")\
**Posts on this page:** 7\
**Page:** 1

## AI-generated summary

**Put Discourse on a Sub URL**

**Original Issue:** [AntonTkachov](/t/-/157052/1) wants to move his Discourse setup from a subdomain to a sub URL (`/community`) on the same domain as his Laravel site.

**Challenges:** [JimPas](/t/-/157052/2) notes that installing Discourse in a sub-folder can be problematic and suggests reviewing the [meta discourse topics](https://meta.discourse.org/search?q=installing%20discourse%20on%20subfolders) on the subject.

**Concerns:** [pfaffman](/t/-/157052/3) questions the decision to move from a subdomain to a sub URL, warning of potential SEO implications and upgrade issues.

**Response:** [AntonTkachov](/t/-/157052/4) appreciates the concerns but notes that he is not the decision-maker. He later clarifies that he is looking for a solution that doesn't necessarily involve a sub-folder approach, considering a proper server setup could provide alternative solutions.

**Official Guide:** [Falco](/t/-/157052/6) provides a link to the official guide for subfolder support with Docker: <https://meta.discourse.org/t/subfolder-support-with-docker/30507?u=falco>

<div class="post-metadata">

**Author:** ![AntonTkachov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antontkachov/32/186316_2.png) [@AntonTkachov](https://meta.discourse.org/u/AntonTkachov)\
**Post date:** [July 7, 2020, 4:39pm UTC](https://meta.discourse.org/t/put-discourse-on-a-sub-url/157052/1 "2020-07-07T16:39:59Z")

</div>

Hi everybody!

I had a discourse setup that was hosted on a subdomain and everything works smoothly. Right now we decided to move discourse from subdomain to a sub URL. So the very same domain will be used for both the Laravel site and `/community` sub URL will be used for discourse. Can you suggest to me what settings and where I should change to make it work? I’m technical and I have decent experience with Rails but I’m not quite sure where should I start and what hidden difficulties I can face.

Thanks, everybody in advance for any assistance and hope to hear from you

Anton

---

<div class="post-metadata">

**Author:** ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)\
**Post date:** [July 7, 2020, 6:05pm UTC](https://meta.discourse.org/t/put-discourse-on-a-sub-url/157052/2 "2020-07-07T18:05:59Z")

</div>

While you can install Discourse in a sub-folder, there are some problems that come up. I would suggest you use this link to look at what issues have come up with sub-folder installations. It can be done, but there are challenges.

[https://meta.discourse.org/search?q=installing%20discourse%20on%20subfolders](https://meta.discourse.org/search?q=installing%20discourse%20on%20subfolders)

> [@Generals Subfolder recommendations and tips](https://meta.discourse.org/t/generals-subfolder-recommendations-and-tips/74401):
>
> The app.yml changes currently described in this subfolder support how-to, that complements the [normal installation](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md), have indeed helped me to install Discourse as a subfolder like [example.com/forum](http://example.com/forum) instead of subdomain [forum.example.com](http://forum.example.com) when suitable. However, there was still the problem of port conflict (80, 443), and I had to shut down the rest of the site at [example.com](http://example.com) (WordPress) on the same virtual server (by stopping its Nginx in my case) to be able to run Discourse at [example.com/forum](http://example.com/forum), …

There are over 50 topics on this. 😐

---

<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:** [July 7, 2020, 10:54pm UTC](https://meta.discourse.org/t/put-discourse-on-a-sub-url/157052/3 "2020-07-07T22:54:44Z")

</div>

> [@AntonTkachov](#):
>
> Right now we decided to move discourse from subdomain to a sub URL.

Is that because you want to lose SEO juice when all of the links change or because the forum is running too smoothly and you need extra work? 😉

Free advice is worth what you pay for it, but I’d think twice about making the change. There are enterprise sites that use sub-folders, so the subfolder code is pretty well maintained, but you’ll still want to be a extra careful with upgrades.

---

<div class="post-metadata">

**Author:** ![AntonTkachov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antontkachov/32/186316_2.png) [@AntonTkachov](https://meta.discourse.org/u/AntonTkachov)\
**Post date:** [July 8, 2020, 2:21pm UTC](https://meta.discourse.org/t/put-discourse-on-a-sub-url/157052/4 "2020-07-08T14:21:32Z")

</div>

Hi @pfaffman!

Thanks for your reasonable response, but the fact is that I’m not a decision maker of this change and I have low influence on the final decision.

Anyway, your answer was useful. Thank you

---

<div class="post-metadata">

**Author:** ![AntonTkachov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/antontkachov/32/186316_2.png) [@AntonTkachov](https://meta.discourse.org/u/AntonTkachov)\
**Post date:** [July 8, 2020, 2:25pm UTC](https://meta.discourse.org/t/put-discourse-on-a-sub-url/157052/5 "2020-07-08T14:25:33Z")

</div>

Actually, I haven’t initially thought about sub url as a sub folder approach. That’s why I haven’t focused on sub-folder topics. For me it looks like a proper server setup can allow us a multiple way to handle that and sub-folder is only one of them. Am I missing something?

---

<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:** [July 8, 2020, 2:54pm UTC](https://meta.discourse.org/t/put-discourse-on-a-sub-url/157052/6 "2020-07-08T14:54:41Z")

</div>

Official guide for that is [Serve Discourse from a subfolder (path prefix) instead of a subdomain](https://meta.discourse.org/t/subfolder-support-with-docker/30507)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [August 7, 2020, 2:54pm UTC](https://meta.discourse.org/t/put-discourse-on-a-sub-url/157052/7 "2020-08-07T14:54:55Z")

</div>

Closed on August 7, 2020, 2:54pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
