雅虎搜索对301、302重定向解释及处理方式
很多的时候我们只知道网站更换域名或更换目录要进行301永久性重定向,为什么要这么操作,301永久性重定向的目的是什么,301定向与302定向的区别是什么?
yahoo官方给我们详细的解释:
- 301: Permanent Redirect 永久性重定向
- 302: Temporary Redirect 临时性重定向
- META Refresh:
<meta http-equiv="refresh" content=...>is recognized as a 301 if it specifies little or no delay or as a 302 if it specifies noticeable delay.
这里要特别说明一下META Refresh转跳,雅虎给我们的解释是,如果没有明显的延迟META Refresh将会被作为302临时重定向来处理,而雅虎对于“明显延迟”并没有给出明确的值,老吧的建议是在5秒以上。
了解了这三种重定向的概念,下面我们来看看雅虎搜索引擎是如何处理不同重定向的网页的?
可以这么说,如果我们熟练掌握了下面不同转跳的处理方式将会给我们的工作带来极大的便利!!

When a page in one domain redirects to a page in another domain, Yahoo! records the "target" URL
如果A域名的页面不管是以301还是302转跳到B网站的网页上,雅虎只会收录B网站的网页,也就是说这种方式可以在网站换域名上,但是A网站的网页不能全部转到B网站的同一个页面,这样会造成B网站的目标页不收录。

When a top-level page in a domain presents a permanent redirect to a page deep within the same domain, Yahoo! indexes the "source" URL.
这一条我们要注意一下了,如果网站的顶级目录页面A做了301重定向到更深目录的网页B,雅虎收录的将还是顶级目录的网页,比如:www.lao8.org/a.html 做了301重定向到 www.lao8.org/aaaa/a.html 虽然我们用的是301永久性重定向,但是雅虎机器人不是抓取A页,仍然抓取B页面。

When a page deep within a domain presents a permanent redirect to a page deep within the same domain, Yahoo! indexes the "target" URL.
不是顶级目录的A页面做301定向到其它目录B,则可以正常收录B页面。

When a page in a domain presents a temporary redirect to another page in the same domain, Yahoo! indexes the "source" URL.
而顶级目录的A页面做302定向到其它目录B,则收录的是A页面。
- 来源:原创
- 版权声明:版权所有,转载时必须以链接形式注明作者和原始出处及本声明。
- 原创作者:lao8
- 本文链接地址:http://www.lao8.org/html/8/2008-7-10/200871094808.html
- 文章名:雅虎搜索对301、302重定向解释及处理方式



