Domain and subdomain with common code in ASP.NET MVC and Azure
|Added at||2016-01-14 22:01|
I have a scenario very particular in a project... and I don't know what is the best way to get it work. To set in context, imaging we are programming a TODO Web App in ASP.NET MVC 6 (ASP.NET 5) and hosting in Azure like "Application Web".
We are going to have two sites:
Firs Site: www.mytododomain.com
This website is just for a landing page (marketing typical), but it need to have a register and login page. When the user make login or register, he is redirect to the next website.
Second Site: app.mytododomain.com
This place is when you create your TODO things, you can create, edit, delete, register, login and logoff. And the most important, you can share your TODO lists.
When you share a TODO lists, I need to share a link with the world like this:
Relevant technical information:
The reason of that:
We want to have differents code, and different project, because if we deploy a new version of the main www.mytododomain.con web, we wont want to deploy the code app.mytodomain.com
What is the best way to do that?
Thank you so much!!