IIS 设置重定向

 

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>

 

posted @ 2020-06-12 09:42  Nina  阅读(888)  评论(0编辑  收藏  举报