PHP smart 404 jump code suitable for changing domain names without changing directory sites

  • 2020-03-31 20:47:34
  • OfStack

 
<!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=//www.jb51.net<?=$_SERVER[REQUEST_URI]?>'> 
</head> 
<body> 
 This site can be accessed with new domain name  
 The page you are currently visiting is http://www.jb51.cn<?=$_SERVER['REQUEST_URI']?> 
 The system redirects you to the corresponding page of the new site //www.jb51.net<?=$_SERVER['REQUEST_URI']?> 
 Or wait for 5 After seconds, the system automatically jumps to the corresponding page of the new site  
</body> 
</html> 

Related articles: