Matt Cutts的愚人节玩笑
通过仔细的研究了下Matt Cutts目前的首页代码以及DP论坛上的讨论,我想这个被黑新闻只是一个愚人节玩笑吧。
在shoemoney上给出一个wordpress脚本可以实现特定时间使博客显示设置好的页面。代码如下:
- #Check if request is for doc root and also if its been cookied
- if (($_SERVER['REQUEST_URI']=="/") && ($_COOKIE['donethat'] == false))
- {
- #set cookie if its not
- setcookie('donethat','true',time()+2629743 );
- #show april fools html
- readfile ("f.html");
- }
- else
- {
- #if the person has already seen it or is not requesting / then show them normal wordpress
- /* Short and sweet */
- define('WP_USE_THEMES', true);
- require('./wp-blog-header.php');
- }
- ?>
也许可能Matt Cutts的博客就是使用类似的技巧来实现的吧。另外,从firefox页面信息查看可以看出,Matt Cutts的博客首页设置了过期时间。
![]()
但是很奇怪的是如果真是愚人节玩笑,Matt Cutts是处于什么原因来搞这个的呢?对于一个备受关注的博客,Matt Cutts关于搜索引擎以及SEO方面的言论都成为所有针对google优化人员的金牌指令。开这样一个愚人节玩笑似乎有些过分,或者Matt Cutts的这个做法后面有更深些的用意?
声明:本文作者天真,版权归属北京SEO博客,转载请保留本声明与本文原始链接。原文地址:http://www.lenoza.com/internet/pril-fools-day-fun-matt-catts/