phpnow1.5.6怎么设置404异常页面

WBOY
Release: 2016-06-13 10:54:24
Original
1049 people have browsed it

phpnow1.5.6如何设置404错误页面?
phpnow1.5.6如何设置404错误页面呢?直接在http.conf里面加 当服务器上只有一个站点的时候还行
当配置了两个站点 就都不行了 一直搞不明白 有高手知道么

------解决方案--------------------
每个虚拟主机都设
或每个虚拟主机目录中都有404处理文件
------解决方案--------------------
在站点虚拟根目录建立.htaccess文件,然后写入以下代码:
RewriteEngine on

errorDocument 404 /404.htm

把404.htm丢到根目录就行了

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template