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>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM