techsir 登陆 |注册|TS首页
  首页 快活林 猿氏悟语

智能跳转的404错误页面

By: 冰客 发表于 2008-11-7 14:43:39 · 4999次点击   回复:0   
Shtml版代码:

  1. <html>
  2. <head>
  3. <meta http-equiv='refresh' content='5; url=http://www.mydot.org<!--#echo var="REQUEST_URI" -->'>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  5. <STYLE type=text/css>
  6. BODY {
  7.        FONT-SIZE: 12px;
  8.        SCROLLBAR-ARROW-COLOR: #000000;
  9.        FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif";
  10.        SCROLLBAR-BASE-COLOR: #828fa2;
  11. }
  12. TD {
  13.        FONT-SIZE: 12px;
  14.        FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif";
  15. }
  16. A:active {
  17.        COLOR: #000000; TEXT-DECORATION: underline
  18. }
  19. A:visited {
  20.        COLOR: #455164; TEXT-DECORATION: underline
  21. }
  22. A:hover {
  23.        COLOR: #000000; TEXT-DECORATION: none
  24. }
  25. A:link {
  26.        COLOR: #455164; TEXT-DECORATION: underline


  27. }
  28. </STYLE>
  29. <TITLE>本站已经启用新的国际域名WWW.MyDoT.ORG,系统正在为你重新定向到新网站中的相应网页.......</TITLE>
  30. </head>
  31. <body leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" style="table-layout:fixed; word-break:break-all">
  32. <table width="100%" border="0" cellspacing="0" cellpadding="0" height="95%" align="center">
  33. <tr align="center" valign="middle">
  34.        <td>
  35.        <table border="0" cellspacing="1" cellpadding="10" bgcolor="#555555" width="60%">
  36.        <tr>
  37.                <td bgcolor="#EEEEEE" align="center">
  38.                <p><b>本站启用新的国际域名<a href=http://www.mydot.org>MyDoT.ORG</a>,系统正在为你重新定向到新站中的相应网页....</b></p></td>
  39.        </tr>


  40.        <tr>
  41.                <td bgcolor="#EEEEEE" align="left">
  42.                <p>目前你需要访问旧站YOYO.COM.RU中的页面:http://yoyo.com.ru<!--#echo var="REQUEST_URI" --><br><br>
  43.        系统在5秒后将为你重新定向到新站<b>MyDoT.ORG</b>中相应的页面<br>
  44.        如果你不想等待,请直接点击下面的连接进入:<a href=http://www.mydot.org<!--#echo var="REQUEST_URI" -->>http://www.mydot.org<!--#echo var="REQUEST_URI" --></a><br>
  45.       

  46. </td>
  47.        </tr>
  48.        </table>
  49.        </td>
  50. </tr>
  51. </table>
  52. </body>
  53. </html>
复制代码
PHP版的代码:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="" target="_blank">http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  5. <title>404</title>
  6. <meta http-equiv='refresh' content='5; url=http://www.mydot.org<?=$_SERVER[REQUEST_URI]?>'>
  7. </head>
  8. <body>
  9. 本站起用新域名访问
  10. 你目前访问的页面是
  11. http://yoyo.com.ru<?=$_SERVER['REQUEST_URI']?>
  12. 系统为你重新定向到新站相应的页面
  13. http://www.mydot.org<?=$_SERVER['REQUEST_URI']?>
  14. 或等待5秒后,系统自动跳转到新站相应的页面
  15. </body>
  16. </html>
复制代码
使用方法:
与xrea404一样用,

如果是cp空间
第一个保存为404.shtml就可以了
4999次点击
0个回复  |  直到 2008-11-7 14:43:39
添加一条新回复
您需要登录后才可以回帖 登录 | 成为会员 新浪微博登陆

标签云|手机版|科技先生 ( 京ICP备07036130号 Powered by Discuz! X )

GMT+8, 2024-5-19 13:19