HTML中利用404将老域名重定向到新域名
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>错误请求--谷妹网</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=GB2312">
<meta name="robots" content="noindex,follow">
<STYLE type="text/css">
BODY { font: 9pt/12pt 宋体 }
H1 { font: 12pt/15pt 宋体 }
H2 { font: 9pt/12pt 宋体 }
A:link { color: red }
A:visited { color: maroon }
</STYLE>
</HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>
<h1>错误请求</h1>
您正在搜索的页面可能已经删除、更名、内容过期或暂时不可用。
<SCRIPT>
var lusername="#"
if (location.host!="www.mysticboy.cn")
{
var lusername ="<a href=http://www.17feng.com/"+location.href.split("goomle.net/")[1]+" target='_blank'>点击这里跳至
可能的新页面</a>";
var lusername2 ="<meta http-equiv='refresh' content='5;url=http://www.17feng.com/"+location.href.split("goomle.net/")
[1]+"' />";
}
document.write(lusername2);
document.write(lusername);
</SCRIPT>
</TD></TR></TABLE></BODY></HTML>