wwwroot 里將web.config 進行設定重定向
使對外出去的域名后面在指向新目錄,比如 原本是 http://11.22.33/ ,現在要求指向 http://11.22.33/aa
在瀏覽器里輸入 http://11.22.33/ 自動指向 http://11.22.33/aa
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<add value="/WMS/" />
</files>
</defaultDocument>
<staticContent>
<mimeMap fileExtension=".apk" mimeType="application/vnd.android" />
<mimeMap fileExtension=".json" mimeType="text/json" />
</staticContent>
<httpRedirect enabled="false" destination="/WMS/" childOnly="false" />
</system.webServer>
</configuration>