How to support multiple websites on one domain with different paths as roots in ASP.NET Core MVC?

Viewed 52

I would like to create an ASP.NET Core MVC app to support multiple sites on one domain with different paths as roots, please refer to the following example.

etc.

Basically the websites will share the same design, same code base, however, the content, images and the website language might be specific for each website, the content is domain dependent.

Any help will be much appreciated. Thank you.

1 Answers

For your requirement,I think you may try add app.UsePathBase(); in your startup

I tried and the Result:

enter image description here

Related