拼搏中的麦壳饼

关注VS2010 关注.Net 4.0 关注微软 C# 源码 VB.net 源码 .Net 最新编码技巧 请访问 Visual Studio Fans 详情访问 http://www.visualstudiofans.com/
posts - 23, comments - 22, trackbacks - 0, articles - 3

HTML中利用404将老域名重定向到新域名

Posted on 2011-02-21 12:27 麦壳饼 阅读(70) 评论(0) 编辑 收藏

<!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>