Area and subdomain routing

前端 未结 5 839
遇见更好的自我
遇见更好的自我 2021-01-06 09:34

I created Admin Area inside my ASP.NET Core application and updated my routes like that:

app.UseMvc(routes =>
{
    routes.MapRoute(name: \"areaRoute\",
          


        
5条回答
  •  春和景丽
    2021-01-06 09:53

    Today similar question is asked (not duplicate because versions are different).

    I can propose the same configuration to you, firstly, you must use nginx on your localserver to redirect or rewrite the url on localserver to specific sub-path, so no need to configure .net application to do redirection just configure the route areas.

    Mapping Subdomains to Areas in ASP.Net Core 3

提交回复
热议问题