C# 如何在asp.net-core中将URL重写为子域,而不实际在.net-core上创建子域

C# 如何在asp.net-core中将URL重写为子域,而不实际在.net-core上创建子域,c#,.net,asp.net-core,C#,.net,Asp.net Core,大家好 如果我使用重写模块,是否可以在.NETCore中模拟URL而不实际创建子域 例如:URL:example.com?value=somecode 并重写为:somecode.example.com 请确认是否可以使用“重写”模块完成 我为startup.cs文件上的URL重写添加了下面的代码,但我希望按照上面的示例 var rewrite = new RewriteOptions().AddRewrite("signup", "registration", false); app.Use

大家好

如果我使用重写模块,是否可以在.NETCore中模拟URL而不实际创建子域

例如:URL:example.com?value=somecode

并重写为:somecode.example.com

请确认是否可以使用“重写”模块完成

我为startup.cs文件上的URL重写添加了下面的代码,但我希望按照上面的示例

var rewrite = new RewriteOptions().AddRewrite("signup", "registration", false); 
app.UseRewriter(rewrite); 


只是命名约定?为什么不使用MapRoute@Bhavin?使用重写器中间件很容易将“example.com?value=somecode”重写为“somecode.example.com”。但请您详细说明一下“在不实际创建网络核心子域的情况下”好吗?