在我的网络配置中我有:
<customErrors mode="On">
<error statusCode="404" redirect="~/error/404.aspx" />
</customErrors>
http://localhost/meh http://localhost/meh
http://localhost/meh.aspx http://localhost/meh.aspx
http://localhost/error/404.aspx http://localhost/error/404.aspxall404错误
我必须如何设置 web.config 才能将所有 404 发送到我的自定义错误?
Thanks
You have to configure this in IIS. By default, only specific files will get routed through the ASP.NET framework... otherwise IIS will handle it.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)