Home >Backend Development >PHP Tutorial > PHP开源网站系统PHPLD怎么自定义404异常

PHP开源网站系统PHPLD怎么自定义404异常

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 13:17:271106browse

PHP开源网站系统PHPLD如何自定义404错误
各位兄弟,有谁知道怎么样自定义PHP网站的404错误的吗。能详细一点的。谢谢了

------解决方案--------------------
404页面是 web server 的事情,与服务器端脚本无关
------解决方案--------------------
Nginx 404 
error_page 404 = /404.html

加在conf配置文件中。


Apache 404
errorDocument 404 /404.html

------解决方案--------------------
可以直接用网页服务器的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