标签:redirect error rem 开发 logs alt stat erro remote
在web.config的<system.web>下加上以下配置
<customErrors mode="On" defaultRedirect="MyErrorPage.html">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.html" />
</customErrors>
mode:开发时设置成On,发布时设置成RemoteOnly
标签:redirect error rem 开发 logs alt stat erro remote
原文地址:http://www.cnblogs.com/BOSET/p/7074251.html