iis7(web.config) 404页面设置

web.config文件添加代码:  


<httpErrors errorMode="DetailedLocalOnly">
            <clear />
            <error statusCode="404" path="E:\home\LocalUser\1021605\www\__errfiles__\404.html" responseMode="File" />
</httpErrors>




404页面路径
/www/__errfiles__/404.html

猜你喜欢

转载自blog.csdn.net/qq_39161501/article/details/80176196