【发布时间】:2019-06-06 14:37:26
【问题描述】:
我有一个混合 Web 应用程序,它以 WordPress 作为根站点,并以 aspnet 核心 Web 应用程序作为虚拟目录。 IIS 结构类似于:
+- DefaultWebSite (hosts WordPress)
| +- web (virtual direcotry that hosts the aspnet core site)
在 aspnet 核心站点中,当我重定向到页面或使用标签助手时,url 包含“/web/blahblah”,这是有道理的。但是,我不希望那样。如何强制aspnet核心站点忽略虚拟目录路径并生成“/blahblah”等不带web的url?
【问题讨论】:
标签: c# asp.net asp.net-core .net-core