ASP.NET MVC Subdomains

Viewed 21158

I have hosting and domain like that:

www.EXAMPLE.com

I've created few subdomains like that:

www.PAGE1.EXAMPLE.com
www.PAGE2.EXAMPLE.com
www.PAGE3.EXAMPLE.com
... etc...

All of these subdomains point to one and the same ASP.NET MVC 5 Application.

I want to make system which will load data depending of subdomain. Example:

I have Article object which could be a Auto Review or Game review or Book Review etc...

I would like to www.auto.example.com load data where type of article is Auto, to www.book.example.com I would like to load data with type Book etc.

There will be many types of the pages.

What is best practise to do that?

The top level domain www.example.com should display something else. It would be main page for the others.

3 Answers
Related