Switching forum from subdomain to sub directory


(John Wright) #1

Does anyone have advice on how to switch a current Discourse forum from a subdomain to a sub directory? I’d like to know how to do this and also how to ensure all redirects of the old URLs point to the new locations.


(Jeff Atwood) #2

We don’t recommend this as it is a much more complex setup.


(John Wright) #3

You mean you don’t recommend switching or don’t recommend subfolders instead of subdomains? As much as I’d agree switching might not be fun, I’ve got forums in their infancy so think it’s best to switch from forum.domain to domain/forum


(Régis Hanol) #4

Subfolder is much more complex to setup and maintain. Also, it has not advantage whatsoever compared to subdomain (which is much simpler to setup and maintain)


(John Wright) #5

As long as it can be done. Subdomain is treated like another domain and sub folder is probably better for SEO to strengthen the domain.


(Jeff Atwood) #6

This is absolutely not true, per Matt Cutts of Google. You can search here for the term “cutts” to learn more.

Lots of SEO :snake: :oil: out there…


(Mittineague) #7

In terms of SEO, no “probably better” about it.
The recommendation is to use whichever is easiest.


(John Wright) #8

I’d still like to switch and know if there are any guidelines or tips on maybe copying the existing forum, setting up a new one on a sub folder. I’m sure it is more work but that is fine. The reason for the switch is for SEO but if we want to argue whether it is a sound one or not that is going to derail this thread. I don’t mind arguing my reasons but that’s not going to help me learn how it can be done or for any tips or suggestions on it.


(Felix Freiberger) #9

If you really like shooting yourself in the foot, these guides should help you to aim:

In the remap step, you have to find a replacement that not only updates the hostname, but also inserts the path. This will be tricky, and probably require a few restores and retries until you get it right.


(John Wright) #10

Appreciate the help. I can understand this might not be a fun process but just want to know what I’m looking at and have a programmer that will be helping me with it.


#11

hmm… I was gonna go this route but now Im convinced to use subdomain. I’ll just have to do redirects from current subfolder to a new subdomain setup. thx, helped more than 1 person here