IIS上的URL重写
https://www.iis.net/downloads/microsoft/application-request-routing
安装ARR,启用Proxy
安装 URL Rewrite
https://iis-umbraco.azurewebsites.net/downloads/microsoft/url-rewrite
在 web.config 增加 <rewrite>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<rewrite>
<rules>
<rule name="Login8008" stopProcessing="true">
<match url="Login(.*)" />
<action type="Rewrite" url="http://localhost:8008/{R:0}" />
</rule>
<rule name="Empinfo803" stopProcessing="true">
<match url="Empinfo(.*)" />
<action type="Rewrite" url="http://localhost:8013/{R:0}" />
</rule>
<rule name="fallback" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="/index.html" />
</rule>
</rules>
</rewrite>