您现在的位置: 雪儿网络 >> 站长学院 >> 网页设计 >> 文章正文

文章标题

适当利用自定义404页面提高流量

『 更新时间:2006-10-8 』『 字体:变小 变大 』『 作者:pai58 | 来源::动易论坛 』

搜索引擎对网站流量的作用之大众所周知,如果你的网站信息量比较大,更新快,而且经过适当的优化的话,搜索引擎对你网站页面的收录量应该挺大的。由于栏目调整阿,文章更换阿,如果人家点击搜索结果的时候,大开的是404错误页面,如下所示。人家肯定是马上关闭页面的。

但是如果你点击我网上的一个不存在或错误的页面呢?你看到的是什么呢?请点击下面的链恿私庖幌隆h缓罂聪旅娴南晗杆得鳌o旅娴囊趁媸前踩模敕判牡慊鳌?/p>

http://www.pxnews.net/222.asp

无法找到该页

您正在搜索的页面可能已经删除、更名或暂时不可用。


请尝试以下操作:

  • 确保浏览器的地址栏中显示的网站地址的拼写和格式正确无误。
  • 如果通过单击链接而到达了该网页,请与网站管理员联系,通知他们该链接的格式不正确。
  • 单击后退按钮尝试另一个链接。

http 错误 404 - 文件或目录未找到。
internet 信息服务 (iis)


技术信息(为技术支持人员提供)

  • 转到 microsoft 产品支持服务并搜索包括“http”和“404”的标题。
  • 打开“iis 帮助”(可在 iis 管理器 (inetmgr) 中访问),然后搜索标题为“网站设置”、“常规管理任务”和“关于自定义错误消息”的主题。

东盟贸易网(www.aseantrade.cn)提示您:你查看的网页可能已经过期,页面已经不存在。现在自动返回网站首页。东盟贸易网为您准备了更多精彩内容……

点击的时候,你会发现大开的是上面内容的页面。然后3秒钟之后开始自动返回网际首页。

这样就给访问者提示了一个信息:我的网站是正常的,你可以通过登录网站的方式寻找你需要的资料。

做法就是自定义404页面,

第一步:新建一个页面,输入下面的代码,地址跟提示信息部分自己更改成自己需要的。其实这也是一个调整页面

<html>

<head>

<title>东盟贸易网www.aseantrade.cn欢迎您光临。</title>

<meta http-equiv="refresh" content="3;url=http://www.aseantrade.cn/index.html">

</head>

<body bgcolor="#c0c0c0" text="#008080">

<h3>东盟贸易网(www.aseantrade.cn)提示您:你查看的网页可能已经过期,页面已经不存在。现在自动返回网站首页。东盟贸易网为您准备了更多精彩内容……</h3>

</body>

</html>

保存成404.html或404.htm的页面,然后传到你空间的跟目录下。比如www或wwwroot或web等

然后在你空间的操作面板里面的自定义404页面里面根据提示进行设置。

稍等几分钟,大开一个你网站上不存在的页面,你会发现也是我网站的自动跳转效果。这样一定替你挽回了不少访客吧?

我的小站,欢迎大家参观一下。

http://www.pxnews.net/

大家多多交流

我直接告诉大家好了,将404错误替换成一个过渡网页转到自己定制的页面就行了,最简单的方法给大家一个html代码:

<html>
<head>
<title></title>
<meta http-equiv="refresh" content="0;url=http://你要指定的页面地址">
</head>
<body>
</body>
</html>

当然你也可以自己美化一下,呵呵,这是最简单能实现的

利用自定义404页面提高流量-------要美化的我给一个:

<html>
<head>
<meta http-equiv="refresh" content="3; url=http://www.www.www">
<style type="text/css">
body {
background: ffffff;
font: messagebox;
font: message-box;
}
marquee {
border: 1px solid buttonshadow;
background: 333333;
height: 12px;
font-size: 1px;
margin: 1px;
width: 400px;
-moz-binding: url("marquee-binding.xml#marquee");
-moz-box-sizing: border-box;
display: block;
overflow: hidden;
}
marquee span {
height: 8px;
margin: 1px;
width: 6px;
background: ff9900;
float: left;
font-size: 1px;
}
.progressbarhandle-0 {
filter: alpha(opacity=20);
-moz-opacity: 0.20;
}
.progressbarhandle-1 {
filter: alpha(opacity=40);
-moz-opacity: 0.40;
}
.progressbarhandle-2 {
filter: alpha(opacity=60);
-moz-opacity: 0.6;
}
.progressbarhandle-3 {
filter: alpha(opacity=80);
-moz-opacity: 0.8;
}
.progressbarhandle-4 {
filter: alpha(opacity=100);
-moz-opacity: 1;
}

.progressbarhandle-5 {
filter: alpha(opacity=100);
-moz-opacity: 1.2;
}
.progressbarhandle-6 {
filter: alpha(opacity=100);
-moz-opacity: 1.4;
}
.progressbarhandle-7 {
filter: alpha(opacity=100);
-moz-opacity: 1.8;
}
.progressbarhandle-8 {
filter: alpha(opacity=100);
-moz-opacity: 2;
}
.progressbarhandle-9 {
filter: alpha(opacity=100);
-moz-opacity: 2.2;
}

.fw {
 font-family: "宋体";
 font-size: 14px;
 font-style: normal;
 line-height: normal;
 font-weight: normal;
 font-variant: normal;
 text-transform: none;
}
.style1 {color: #ff0000}
</style>
<title>错误的http请求</title></head>
<body>
<center>
  <p>
    <marquee direction="right" scrollamount="8" scrolldelay="100">
    <span class="progressbarhandle-0"></span> <span class="progressbarhandle-1"></span> <span class="progressbarhandle-2"></span> <span class="progressbarhandle-3"></span> <span class="progressbarhandle-4"></span> <span class="progressbarhandle-5"></span> <span class="progressbarhandle-6"></span> <span class="progressbarhandle-7"></span> <span class="progressbarhandle-8"></span> <span class="progressbarhandle-9"></span>
    </marquee>
  </p>
  <p> </p>
</center>
<div class="fw" id="001">
  <div align="center" class="style1">错误的http请求,正在跳转到网站首页......</div>
</div>
</body>
</html>

16个自定义404错误页面,自己选

选择中意的,修改下源代码里的网址什么的,然后改iis!

http://www.q127.com/rjxz/2006mb/0905/2006711174735905.rar

【点击数:】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口

关文章

您的姓名:
评分等级:
1分 2分 3分 4分 5分
评论内容:
1、严禁发表危害国家安全、政治、黄色淫秽等内容的评论。
2、用户需对自己在使用雪儿网络服务过程中的行为承担法律责任。
3、本站管理员有权保留或删除评论内容。
4、评论内容只代表网友个人观点,与本网站立场无关。
雪儿网络
copyright©2006-2008 xueol.com 鄂icp备06022161号
返回网站顶部