【发布时间】:2020-04-30 19:36:17
【问题描述】:
我的网址是这样的:https://myhospital.com/Hospitals-and-Clinics/Hospitals/Hospital-A/Our-Doctors
我试试这个脚本:
<location path="Our-Doctors">
<system.webServer>
<httpRedirect enabled="true" destination="https://www.appointment.myhospital.com/" httpResponseStatus="Permanent" />
</system.webServer>
</location>
在网络配置中
但它不起作用。它不会重定向到https://www.appointment.myhospital.com/
Hospital-A 是医院的名称
所以可以这样:
https://myhospital.com/Hospitals-and-Clinics/Hospitals/Hospital-B/Our-Doctors
或
https://myhospital.com/Hospitals-and-Clinics/Hospitals/Hospital-C/Our-Doctors
动态的
我该如何解决这个问题?
在这种情况下使用正则表达式吗?
【问题讨论】:
标签: c# asp.net url web-config sitecore