c# - ASP .NET MVC 5 multiple clients with different domains -
i have build web-application using asp .net mvc. has serve different customers, each customer accesses page via domain. domain application supposed load customer specific data. has provide login mechanism.
i'm fimiliar jsf, there solve problem via webfilters.
does asp.net mvc provide similar webfilters or there better solution solve problem?
i wish there tutorial or example adresses problem, after hours of googeling not find anything. i'm searching wrong keywords, don't know how mechanisms called.
there several ways of doing this, example use routing (is possible make asp.net mvc route based on subdomain?) go getting username url.
var user = request.url.host.split('.')[0];
Comments
Post a Comment