php 智能404跳转代码,适合换域名没改变目录的网站


复制代码 代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>404</title>
<meta http-equiv='refresh' content='5; url=http://www.phpstudy.net<?=$_SERVER[REQUEST_URI]?>'>
</head>
<body>
本站起用新域名访问
你目前访问的页面是http://www.phpstudy.cn<?=$_SERVER['REQUEST_URI']?>
系统为你重新定向到新站相应的页面http://www.phpstudy.net<?=$_SERVER['REQUEST_URI']?>
或等待5秒后,系统自动跳转到新站相应的页面
</body>
</html>

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3