Multi domain support on a single ASP .NET Core MVC application code base

Viewed 81

I am trying to find an elegant way to support multiple domains on a single ASP.NET Core MVC application.

Example:

Basically all the domains should point to the same code base, the design is the same across the websites, however it should display different data/images, the content is domain dependent. Any help will be much appreciated. Thank you.

1 Answers

After some clarification, OP is asking for same design but different data from backend for each domain. This cannot be done with MVC.

And different data means different application, I'm assuming. So this isn't possible with WebAPI either. All you want is multiple frontends with same design, but different domains and different backend. You're gonna need multiple applications.

Related