Home  >  Article  >  Backend Development  >  IIS:404错误设置

IIS:404错误设置

WBOY
WBOYOriginal
2016-06-06 20:45:21941browse

IIS:8.5
问题描述:
搭建一个测试网站,总共就2个页面(index.php和404.php):http://127.0.0.1
IIS:404错误设置
在事先设置好了404的情况下
IIS:404错误设置
IIS:404错误设置
但是,当访问不存在的网页时候,比如:http://127.0.0.1/adfasf.php
就会报错:
IIS:404错误设置

回复内容:

IIS:8.5
问题描述:
搭建一个测试网站,总共就2个页面(index.php和404.php):http://127.0.0.1
IIS:404错误设置
在事先设置好了404的情况下
IIS:404错误设置
IIS:404错误设置
但是,当访问不存在的网页时候,比如:http://127.0.0.1/adfasf.php
就会报错:
IIS:404错误设置

IIS:404错误设置
解决办法:需要将404错误页设置成:自定义错误页,如下图所示

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn