I’ve a personal project, and the logic layer and database is equal, but I’ve two domains that the only thing that changes is the URL, and the master page.
What I need is a simple system to recognize the URL and show the correct site master, because I what use the same database with the configuration of ASP.NET tables, stored procedure and so one.
The most similar thing I’ve saw, it’s the DNN portal system, but I don’t need all the features, like separate login system.
Thanks in advance.
I think something along these lines will get you what you need:
In IIS, point both URLs to the same virtual directory, so they are both being served from the same place –
Add a
PreInitevent to read the URL then load a MasterPage accordingly:Hope that gets you in the right direction!