How can I change the root route?


(raj) #1

Hi There,

I would like to deploy the application not at the root level ex: http://www.example.com/ but i would like to deploy it under http://www.example.com/talk.

Thanks in advance.


(Sam Saffron) #2

Try searching for “subfolder howto”

https://meta.discourse.org/search?q=subfolder%20howto


(raj) #3

Got it.

Here is the info for anyone who needs it.

You can configure the root path in
config/discourse.conf

# set to relative URL (for subdirectory hosting)
# IMPORTANT: path must not include a trailing /
# EG: /forum
relative_url_root = /talk

(Kane York) #4

You can also put it as DISCOURSE_RELATIVE_URL_ROOT in app.yml .