404错误链接失效解决办法
时间:2006-06-26 来源:聆听风雨
1.在http.conf里设置如下
ErrorDocument 404 /error.php
2.把error.php文件放到网站根目录
以下是error.php内容
<?php
if($_SERVER['REQUEST_URI'] != '/error.php')Header("Location: http://www.my55.cn/error.php"); ?>
<meta http-equiv="refresh" content="0; url=http://www.my55.cn">
if($_SERVER['REQUEST_URI'] != '/error.php')Header("Location: http://www.my55.cn/error.php"); ?>
<meta http-equiv="refresh" content="0; url=http://www.my55.cn">
相关阅读 更多 +