<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[郝聪SEO博客]]></title> 
<link>http://www.pptge.com/index.php</link> 
<description><![CDATA[搜索引擎优化原创技术博客，关注整合网络营销，分享各类网站SEO策略与优化成功案例，曾任多家商业网站的SEO顾问！为商业网站制定整体SEO战略，创造庞大搜索流量，为企业网站提升关键词排名，带动产品销售。为发展助力，成就你我！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[郝聪SEO博客]]></copyright>
<item>
<link>http://www.pptge.com/post/231/</link>
<title><![CDATA[几个主流搜索引擎的404页面]]></title> 
<author>郝聪 &lt;bloghuman@gmail.com&gt;</author>
<category><![CDATA[搜索引擎研究]]></category>
<pubDate>Mon, 20 Nov 2006 16:57:45 +0000</pubDate> 
<guid>http://www.pptge.com/post/231/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp; 前天，我写了一篇文章“<a href="http://www.bloghuman.com/post/227/" target="_blank">404错误的处理方式及对SEO的影响</a>”，介绍了对404错误的理解、一些常用的HTTP状态码、404对SEO的影响、自定义404错误页面的原则以及在不同的服务器环境下的处理方式。自定义404错误页面的合理设计体现着一个网站是否具备人性化，也是提高<a href="http://www.bloghuman.com/category/ue/" target="_blank" title="http://www.bloghuman.com/category/ue/" class="mykeyword">用户体验</a>的一种方式。同时，在自定义404错误页面的技术实现上，充分考虑到适用于搜索引擎，尽量不要增加额外的负担，这是提供网站搜索引擎友好性的一种体现。<br/><br/>&nbsp;&nbsp; 先来介绍下黑色梦中处理自定义404错误页面的方式，再探求下目前主流搜索引擎在这方面的一个表现。<br/><br/>&nbsp;&nbsp; 我为这个<a href="http://www.bloghuman.com/" target="_blank">SEO博客</a>自定义了一个404错误页面，地址是：<acronym title="">http://www.bloghuman.com/notfound.php</acronym> 。这个页面是我手写的，主要想用户介绍下我的博客是干什么的，它能为用户提供什么内容，并提供快速链接到主要分类及特色页面的链接。注意，对404错误页面实施<a href="http://www.bloghuman.com/" target="_blank">SEO</a>是完全没有必要的，因为它向搜索引擎返回的是404状态码，搜索引擎并不会索引。<br/><br/>&nbsp;&nbsp; 下一步该做的是：如何让notfound.php向搜索引擎反回404状态码，而不反馈“302”+“200”的状态码。我采用的方式是：在网站的.htaccess文件里写入：<br/><br/><div class="code">ErrorDocument 404 /notfound.php</div><br/><br/>&nbsp;&nbsp; 写入后，使用<a href="http://www.seoconsultants.com/tools/headers.asp" target="_blank">Server Header检测工具</a>检查一下当发生404错误时，是否返回了”404“状态码，如图：<br/><br/><a href="http://www.pptge.com/attachment/404-error-page-bloghuman.png" target="_blank"><img src="http://www.pptge.com/attachment/404-error-page-bloghuman.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>大功告成！！！<br/><br/>下面，我们关注下几个主流搜索引擎的404错误处理方式：<br/><br/>1。Yahoo!<br/>Yahoo!的404错误页面如图：<br/><a href="http://www.pptge.com/attachment/404-error-page-yahoo.png" target="_blank"><img src="http://www.pptge.com/attachment/404-error-page-yahoo.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>10秒后，会自动跳转到另外一个URL：http://www.yahoo.com/?l=1164038682，不清楚最后的参数表示什么意思，但用工具检测反馈的状态码是：HTTP/1.1 404 NOT FOUND，可见已经成功返回了404状态码。不过，奇怪的是，404页面中LOGO的链接设置为：http://www.yahoo.com/404/*http://www.yahoo.com，我不太清楚这样的用意何为，也许是一种特殊的处理。Yahoo!不愧为Yahoo!，确实不一般。<br/><br/>2。Google<br/>Google的404错误页面我想很多人都见过，用的人太多了。譬如，我最开始用google sitemap时，因为URL很长，经常打错地址，特别是webmasters经常写成wembasters，可以说几乎每天都要和报错页面打个招呼。<br/><br/><a href="http://www.pptge.com/attachment/404-error-page-google.png" target="_blank"><img src="http://www.pptge.com/attachment/404-error-page-google.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>Google的404错误页面很简单，也没有跳转，没有任何链接，这个页面是动态页面，接收了url显示在网页内容之中。经检测，正确返回了”404“状态码。<br/><br/><a href="http://www.pptge.com/attachment/404-error-page-google-status.png" target="_blank"><img src="http://www.pptge.com/attachment/404-error-page-google-status.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>注意，Google反馈的状态码和Yahoo!的有区别，前者是 HTTP/1.0 404 NOT FOUND，而后者是HTTP/1.1 404 NOT FOUND<br/><br/>3。Baidu<br/><br/><a href="http://www.pptge.com/attachment/404-error-page-baidu.png" target="_blank"><img src="http://www.pptge.com/attachment/404-error-page-baidu.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>从用户体验角度来评价百度的404错误页面还是不错的，提供了一个搜索框，便于用户转为搜索行为，此外，还有”百度更多“页面、”百度帮助中心“、”百度吧“的链接，这些链接对用户是非常有帮助的，就好象用户通过搜索引擎进入一个感兴趣的站点，但是怎么都不到急需的信息，那这时候怎么办？搜索+人工服务的方式是留住用户的最佳方式。这方面百度做的很好。<br/><br/>而很遗憾的是，百度自定义的404错误页面返回的是”302“+200“的状态码，作为站长我们都考虑到从用户及搜索引擎两个角度去优化站点，而作为搜索引擎的百度却对自己的”行为“如此不规范，由此可见，百度在技术上的不考究。<br/><a href="http://www.pptge.com/attachment/404-error-page-baidu-status.png" target="_blank"><img src="http://www.pptge.com/attachment/404-error-page-baidu-status.png" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>4。LIVE<br/>MSN的404页面最让我吃惊，默认的IIS 404错误页面，不过可以理解，LIVE上线没多久。<br/><br/>其他的就不分析了。像搜狗、SOSO、中搜的，大家都可以自己去研究下，感觉国内的搜索引擎在这方面不如国外的搜索引擎。<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">作者: 郝聪<br/>原载: <a href="http://www.bloghuman.com" target="_blank">黑色梦中SEO博客</a><br/>版权所有,转载时请注明作者并以链接形式标注原始出处!</div></div><br/>Tags - <a href="http://www.pptge.com/tags/404/" rel="tag">404</a> , <a href="http://www.pptge.com/tags/yahoo%2521/" rel="tag">yahoo!</a> , <a href="http://www.pptge.com/tags/google/" rel="tag">google</a> , <a href="http://www.pptge.com/tags/%25E7%2599%25BE%25E5%25BA%25A6/" rel="tag">百度</a> , <a href="http://www.pptge.com/tags/live/" rel="tag">live</a>
]]>
</description>
</item><item>
<link>http://www.pptge.com/post/231/#blogcomment99645</link>
<title><![CDATA[[评论] 几个主流搜索引擎的404页面]]></title> 
<author>孙波 &lt;fjk@jkl.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 24 Apr 2008 02:42:27 +0000</pubDate> 
<guid>http://www.pptge.com/post/231/#blogcomment99645</guid> 
<description>
<![CDATA[ 
	正好涉及到404页面的修改，很有用的文章~谢谢
]]>
</description>
</item><item>
<link>http://www.pptge.com/post/231/#blogcomment99939</link>
<title><![CDATA[[评论] 几个主流搜索引擎的404页面]]></title> 
<author>过河卒 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sat, 16 Aug 2008 15:33:33 +0000</pubDate> 
<guid>http://www.pptge.com/post/231/#blogcomment99939</guid> 
<description>
<![CDATA[ 
	现在你的404返回的是200啊 你可以看下啊<br/>#1 Server Response: http://www.bloghuman.com/notfound.php<br/>HTTP Status Code: HTTP/1.1 200 OK<br/>Date: Sat, 16 Aug 2008 15:31:50 GMT<br/>Server: Apache/1.3.35 (Unix) PHP/4.4.2<br/>X-Powered-By: PHP/4.4.2<br/>Connection: close<br/>Content-Type: text/html
]]>
</description>
</item><item>
<link>http://www.pptge.com/post/231/#blogcomment103637</link>
<title><![CDATA[[评论] 几个主流搜索引擎的404页面]]></title> 
<author>qpyx456com &lt;qezl56@mail114.net&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 30 Jan 2012 14:29:15 +0000</pubDate> 
<guid>http://www.pptge.com/post/231/#blogcomment103637</guid> 
<description>
<![CDATA[ 
	说得有道理，确实不错，先顶顶再说！！！！
]]>
</description>
</item>
</channel>
</rss>