Problem with discourse in a subfolder


(Hosein Naseri) #1

I followed this tutorial. but now, instead of example.com/forum/, my discourse is shown in forum.example.com/forum/
what could be wrong?


(Jay Pfaffman) #2

My advice

Don’t waste your time with a complicated configuration that buys you nothing but headaches.

But Mom always says that unsolicited advice is worth what you pay for it.

The answer to your question

See the line in app.yml that looks like this:

  DISCOURSE_HOSTNAME: 'forum.example.com'

and change it to this:

  DISCOURSE_HOSTNAME: 'example.com'

(Hosein Naseri) #3

wow thank you very much for solving me the problem and also that SEO advice. However I believe that google is all about user experience. And yes theoretically sub-domains and sub-folders don’t have any difference in terms of seo. However from a user experience point of view, I believe that sub-folder is better.


(Jay Pfaffman) #4

Did my answer to your question work for you?


(Hosein Naseri) #5

I think the answer is logical but I’ve not tested it yet.


(Hosein Naseri) #6

I think I’m going to stick with your advice because things are much more complicated than what I was thinking! I use the same server to host my website and the forum, so I need to follow this guide, and even worst, the control panel of the server is VestaCP :sweat_smile:.