I've been assigned a project to demonstrate one codebase housing multiple web sites. Requests for any one of the housed domains would first come through the main project directory, which would pass control to the web site identified by the domain name.
The file structure would include subfolders for each web site (probably named by domain name) in the main project directory. Each of those web sites would be written in: ASP.NET/ASP.NET Core, Angular, or React; and each would contain its own routing mechanisms.
These are the main challenges that I'm looking to address:
- The main project directory would essentially exist to route requests to the appropriate web site in the appropriate subfolder. Is there a language/technology that I could use to accomplish this? (It would need to pass off routing control to the website, which could be written in any one of the earlier-mentioned technologies.)
- The domain name in the browser would need to remain the same, though the website is in a subfolder in the main project directory.
The codebase may begin with only three to ten web sites, but the idea is to create a codebase to house all of these projects and have scalability to add more sites later.
Is this possible?