0
如何设定设置URL与子文件夹为localhost:5000/rootfolder /控制器,即本地主机:5000/mysite的/家红隼使用的文件夹路径
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
我不明白你在问什么。您想做什么? – poke
我想要URL路径localhost:5000/site/controller中的子文件夹而不是localhost:5000/controller –
请记住,文件夹和url段是单独的概念。我想你是在问我们所谓的路径基础。你可以通过Map或UsePathBase得到它。 – Tratcher