Category subdomains - Same Discourse instance on different subdomains


(Michael) #1

Hey there, a quick followup to this solution.

I’d like to have the same Discourse instance on two different domains, so I can present info in context. E.g. multiple projects.

Each subdomain would:

  • have all the content
  • a vanity subdomain for the project
  • some javascript would forward to that project’s category if arriving at /

I tried this with a 2nd DNS A record, but the 2nd domain did a redirect to the 1st domain, then ran my JS - so neither the vanity subdomain or the forward worked.

Is there a way to get one Discourse install to respond to multiple domain names?
Does this mess up S3 assets and CDN?
Any other issues with this?

Thanks!

Mike


#2

Do you mean that you want the same content on both? Can you not just use a redirect?


(Michael) #3

Hey Hawk, I putting together a site to organize volunteers for a group of separate projects. Because the projects are loosly affiliated, Vanity URLs/subdomains would be nice.


#4

You’ll run into trouble having duplicate content on different domains though.


(Michael) #5

Hey @HAWK your comment would be alot more meaningful if you described the “trouble” :slight_smile:


(Jeff Atwood) #6

Google will penalize you heavily in search rankings for doing this.