404返回200 咋回事啊。

浏览:614 发布日期:2015/10/01 分类:求助交流
<?php
class EmptyAction extends Action{
     function _empty(){ 
      header('HTTP/1.1 404 Not Found');
      header("status: 404 Not Found");
        $this->display("Public:404"); 
    } 
    
        function index(){
      header('HTTP/1.1 404 Not Found');
      header("status: 404 Not Found");
        $this->display("Public:404"); 
        }
}
?>
已经做了相应的设置了,但返回代码依然是200。。哪里弄错了?
最佳答案
评论() 相关
后面还有条评论,点击查看>>