Ask A Question


You’re not receiving notifications from this thread.

Multi-URL Website Setup/Architecture

Ryan Carter asked in Rails

Lets say you want to set up a forum site at

Then you want to add a subdomain where the URL would point to something like All of's forum questions will show in, but if I go to, only the questions originated there will show.

This is kind of like a multi-tenant type app, but I want one user to be the tenant of all the subdomains and main page. The forums from would show up in and even reference the URL where they originated.

Each subdomain would be customizable with things like a header image, logo, about us page, contact us page, and even send emails from that domain.

I hope that makes sense. So basically 1 admin for a main site and multiple sub-domain sites where all the "child" sites have a unique URL, but share their data with the main site. The users could have one set of credentials for all the sites.

Anyway, and suggestions on how to lay out the architecture for something like that would be appreciated.

Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 83,453+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.