If I understand your intent correctly, ASP.NET routing is not suitable for this.
If this were for ASP.NET versions prior to 5.0, I would suggest that you intercept the request before routing it in Application_BeginRequest () and check the value of the HTTP_HOST request header to determine which site the user should visit.
I see that the application flow has changed a lot with vNext. However, I came across this sample from an ASP.NET MVC 6 source on github that creates a custom route based on the User header in the request: https://github.com/aspnet/Mvc/tree/dev/samples/ CustomRouteSample.Web I believe this may be the original template for a similar solution to your problem if you use the "HTTP_HOST" header instead.
Good luck, let us know if you can implement a working solution.
Cahit
source share