关于404页面在LINUX下的设置

浏览:2161 发布日期:2013/11/27 分类:求助交流 关键字: 404 Linux
请大侠帮我看下这个问题:

我在控制器里面,新建了EmptyAction:
<?php
class EmptyAction extends CommonAction{
function _empty(){
header("HTTP/1.0 404 Not Found");
$this->display('empty:index');
}
// 404
function index() {
header("HTTP/1.0 404 Not Found");
$this->display('empty:index');
}
}


公共模块中也加入了_empty方法:
function _empty()
{
header("HTTP/1.0 404 Not Found");
$this->display('empty:index');
}


TPL里面增加了Empty/index.html的模板页面

在WINDOWS下部署时,页面成功转向到404页面(Empty/index.html),
但在LINUX下,一直提示无法找到模板Empty/index.html



请问Linux下还需要如何设置??
.htaccess这些文件我也是配置了,Apache的重写属性我也是都设置成了All的

最佳答案
评论( 相关
后面还有条评论,点击查看>>