智能跳转的404 301域名错误页面,非常适合那些更换玉米又怕丢流量的

智能跳转的404错误页面,非常适合那些更换玉米又怕丢流量的,有点像503域名

301重定向是当用户或搜索引擎向网站服务器发出浏览请求时,服务器返回的一种响应,指示本网页永久性转移到另一个地址。有利于搜索引擎收录。
大家仔细观察就会发现
http://doorle.cn/blog
http://www.duole.org/blog
玉米后面的地址是自动替换的
也就是说:
会根据访问者请求的原来旧站中存在的页面,自动的跳转到新站中相应的页面
如:
访问者请求http://doorle.cn/blog
则系统自动跳转到http://www.duole.org/blog
Shtml版代码:
程序代码 程序代码
<html>
<head>
<meta http-equiv='refresh' content='5; url=http://www.DuoLe.org<!--#echo var="REQUEST_URI" -->'>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type=text/css>
BODY {
        FONT-SIZE: 12px;
        SCROLLBAR-ARROW-COLOR: #000000;
        FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif";
        SCROLLBAR-BASE-COLOR: #828fa2;
}
TD {
        FONT-SIZE: 12px;
        FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif";
}
A:active {
        COLOR: #000000; TEXT-DECORATION: underline
}
A:visited {
        COLOR: #455164; TEXT-DECORATION: underline
}
A:hover {
        COLOR: #000000; TEXT-DECORATION: none
}
A:link {
        COLOR: #455164; TEXT-DECORATION: underline
}
</STYLE>
<TITLE>本站已经启用新的国际域名WWW.DuoLe.ORG,系统正在为你重新定向到新网站中的相应网页.......</TITLE>
</head>
<body leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" style="table-layout:fixed; word-break:break-all">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="95%" align="center">
<tr align="center" valign="middle">
        <td>
        <table border="0" cellspacing="1" cellpadding="10" bgcolor="#555555" width="60%">
        <tr>
                <td bgcolor="#EEEEEE" align="center">
                <p><b>本站启用新的国际域名<a href=http://www.DuoLe.org>DuoLe.ORG</a>,系统正在为你重新定向到新站中的相应网页....</b></p></td>
        </tr>
        <tr>
                <td bgcolor="#EEEEEE" align="left">
                <p>目前你需要访问旧站Doorle.Cn中的页面:Doorle.Cn" target="_blank" rel="external">http://Doorle.Cn<!--#echo var="REQUEST_URI" --><br><br>
        系统在5秒后将为你重新定向到新站<b>DuoLe.ORG</b>中相应的页面<br>
        如果你不想等待,请直接点击下面的连接进入:<a href=http://www.DuoLe.org<!--#echo var="REQUEST_URI" -->>http://www.DuoLe.org<!--#echo var="REQUEST_URI" --></a><br>
        

</td>
        </tr>
        </table>
        </td>
</tr>
</table>
</body>
</html>


PHP版的代码:
程序代码 程序代码

<!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.mydot.org<?=$_SERVER[REQUEST_URI]?>'>

</head>

<body>

本站起用新域名访问

你目前访问的页面是

http://DuoLe.org<?=$_SERVER['REQUEST_URI']?>

系统为你重新定向到新站相应的页面

http://www.mydot.org<?=$_SERVER['REQUEST_URI']?>

或等待5秒后,系统自动跳转到新站相应的页面

</body>

</html>

纯htm (js)代码的
程序代码 程序代码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<HTML
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>doorle提醒您:您访问的页面不存在 Page Not Found! 网页未找到!</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE type=text/css>BODY {
    FONT-SIZE: 14px; MARGIN: 0px; COLOR: #000000;  FONT-FAMILY: Tahoma, Verdana, Arial, Helvetica, sans-serif
}
A:link {
    COLOR: #0240a3
}
A:visited {
    COLOR: #0240a3
}
.font {
    FONT: bolder 24px "黑体"; COLOR: #ffffff; TEXT-DECORATION: none
}
</STYLE>
<script language=javascript>
if (document.domain =='doorle.cn')
    this.location = "http://www.duole.org" + this.location.pathname + this.location.search;
</script>

</HEAD>
<BODY leftMargin=0 topMargin=0>
<DIV id=top>
<TABLE cellSpacing=0 cellPadding=0 width="97%" border=0>
  <TBODY>
  <TR>
    <TD></TD>
    <TD align=right>© 2004-2007
    Doorle.cn<BR>保留所有权利</TD></TR></TBODY></TABLE></DIV>
<TABLE cellSpacing=0 cellPadding=0 width=460 align=center bgColor=#f9f9f9
border=0>
  <TBODY>
  <TR>
    <TD background=/404//top_bg.gif height=54>
      <TABLE cellSpacing=8 cellPadding=0 width="97%" border=0>
        <TBODY>
        <TR>
          <TD class=font>网页未找到!</TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD class=line>
      <TABLE cellSpacing=8 cellPadding=0 width="100%" align=center border=0>
        <TBODY>
        <TR>
          <TD width="30%"><IMG
            src="/404//notice.gif"></TD>
          <TD width="70%"><BR>
            <P><BIG><B>Page Not Found!</B></BIG></P>
            <P>The requested URL was not found, please contact with your
            administrator. </P>
            <P><B>网页未找到!您访问的页面有误,或已删除</B></P>
            <P>若您有什么意见或着建议可以留言</A><BR>或者直接与我们取得联系,谢谢。</P>
            <P>» <A href="javascript:history.back();">返回</A> <BR>10秒钟后跳转至着页<BR><BR>若您有什么意见活着建议可以留言</A><BR>或者直接与我们取得联系,谢谢!<BR>
      <A
      href="http://wpa.qq.com/msgrd?V=1&Uin=81165227&Site=inme&Menu=yes"
      target=blank><IMG height=17 alt=点击!直接和管理对话或留言(无验证)
      src="/404/16_offline.gif" width=77 border=0></A>
        </P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
        <DIV style="FONT-WEIGHT: bold; FONT-SIZE: 14px;margin:10px 10px 0px 450px">·[推荐访问兄弟站点]:<BR>
<A title=多乐博客 href="http://www.doorle.cn/" target=_blank>多乐博客</A> - <A title="多乐免费网收集各种最新免费资源信息,包括免费空间,免费域名,免费论坛,免费相册,免费邮箱,网络硬盘,免费账号等" href="http://free.doorle.cn/" target=_blank>免费资源信息</A> - <A title="QQ空间代码" href="http://qq.doorle.cn" target=_blank>QQ空间代码</A> - <A title=# href="#" target=_blank></A>!<br/>
</DIV></BODY></HTML>


From: 本站原创
Tags:
相关日志:
-人在这里留下了脚印,还有人指手划脚了0 句
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.