Put discourse on a sub url

AI-generated summary

Put Discourse on a Sub URL

Original Issue: AntonTkachov wants to move his Discourse setup from a subdomain to a sub URL (/community) on the same domain as his Laravel site.

Challenges: JimPas notes that installing Discourse in a sub-folder can be problematic and suggests reviewing the meta discourse topics on the subject.

Concerns: pfaffman questions the decision to move from a subdomain to a sub URL, warning of potential SEO implications and upgrade issues.

Response: AntonTkachov 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 provides a link to the official guide for subfolder support with Docker: https://meta.discourse.org/t/subfolder-support-with-docker/30507?u=falco

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

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

There are over 50 topics on this. :neutral_face:

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? :wink:

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.

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

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?

Official guide for that is Serve Discourse from a subfolder (path prefix) instead of a subdomain