<?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>AG&#039;s blog &#187; 重复的元说明</title>
	<atom:link href="http://www.allengao.com/blog/tag/%e9%87%8d%e5%a4%8d%e7%9a%84%e5%85%83%e8%af%b4%e6%98%8e/feed" rel="self" type="application/rss+xml" />
	<link>http://www.allengao.com</link>
	<description>关注独立博客,网络赚钱以及博客赚钱</description>
	<lastBuildDate>Sun, 05 Feb 2012 16:09:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>重复的元说明与重复的标题标记</title>
		<link>http://www.allengao.com/blog/wordpress-canonical-permalink-meta-tag-title.html</link>
		<comments>http://www.allengao.com/blog/wordpress-canonical-permalink-meta-tag-title.html#comments</comments>
		<pubDate>Sat, 02 May 2009 13:13:02 +0000</pubDate>
		<dc:creator>AG</dc:creator>
				<category><![CDATA[博客独立]]></category>
		<category><![CDATA[canonical]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[唯一]]></category>
		<category><![CDATA[重复的元说明]]></category>
		<category><![CDATA[重复的标题标记]]></category>

		<guid isPermaLink="false">http://www.allengao.com/blog/wordpress-canonical-permalink-meta-tag-title.html</guid>
		<description><![CDATA[前些天登录Google 管理员查看自己的博客，在故障诊断里的内容分析中看到了大量的重复的元说明与重复的标题标记。使用Canonical属性之后一切OK
相关文章:<ol>
<li><a href='http://www.allengao.com/blog/image-hosting-blog-selection.html' rel='bookmark' title='独立博客图片外链的选择'>独立博客图片外链的选择</a></li>
<li><a href='http://www.allengao.com/blog/godaddy-free-web-hosting-imagehosting-subdomain.html' rel='bookmark' title='使用Godaddy带广告免费空间做图片外链服务器'>使用Godaddy带广告免费空间做图片外链服务器</a></li>
<li><a href='http://www.allengao.com/blog/nndnndnndnnd.html' rel='bookmark' title='NND,Godaddy说撞墙就撞墙了'>NND,Godaddy说撞墙就撞墙了</a></li>
<li><a href='http://www.allengao.com/blog/use-google-app-engine-python-blog-blogging.html' rel='bookmark' title='转到Google App Engine写博客？'>转到Google App Engine写博客？</a></li>
<li><a href='http://www.allengao.com/blog/wordpress27-upgrage.html' rel='bookmark' title='wordpress2.7升级指南'>wordpress2.7升级指南</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>前些天登录Google 管理员查看自己的博客，在故障诊断里的内容分析中看到了大量的<strong>重复的元说明</strong>与<strong>重复的标题标记。</strong></p>
<h2>一、具体表现如下：</h2>
<p><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="重复的元说明与重复的标题标记" src="http://www.allengao.com/wp-content/plugins/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_g1H0QYST-Oo%2FSfw_AFt7WOI%2FAAAAAAAAANc%2FZmKxzpy6UME%2Fs800%2F重复的元说明与重复的标题标记.jpg" alt="重复的元说明与重复的标题标记" /><br />
一般包含两个URL，一个是我设置的permalink，另外的是permalink+?postcomment=true或者是permalink+?comment=true。</p>
<p><span id="more-418"></span></p>
<p>真搞不懂Google的蜘蛛从哪里找到的这些带参数的链接。。。</p>
<h2>二、造成<strong>重复的元说明</strong>的原因</h2>
<p>分析了一下原因，应该是&#8221;重复的页面&#8221;造成的，也就是说因为上面的两个URL所对应的网页内容是一样的(本来就是同一篇文章,内容当然一样了),Google的蜘蛛就认为是重复的页面,从而也就造成了<strong>重复的元说明。</strong></p>
<h2>三、解决方法</h2>
<p>网上搜索一番，找到了解决方法，只要告诉Google那个页面是&#8221;正宗&#8221;的就可以了。这就需要用到link标签的一个新属性-<strong>Canonical</strong>了，支持者有三大巨头：Google、Yahoo和微软。<strong>Canonical</strong>属性可以用来指定一个网页的正宗链接版本，从而在支持<strong>Canonical</strong>属性的搜索引擎的结果页面中显示&#8221;正宗&#8221;版本的链接并且消除<strong>重复的元说明</strong>与<strong>重复的标题标记</strong>问题。</p>
<p>WordPress添加<strong>Canonical</strong>属性的具体操作方法：</p>
<ol>
<li>手工添加代码<br />
比较省事，在header.php中加上一条<br />
&lt;?php if ( is_singular() ) echo &#8216;&lt;link rel=&#8221;canonical&#8221; href=&#8221;&#8216; . get_permalink() . &#8216;&#8221; /&gt;&#8217;; ?&gt;<br />
至于添加的位置,就找一个&lt;link rel=xxx&gt;的放一起吧.</li>
<li>使用<strong>Canonical插件<br />
</strong>我也没有用过<strong>Canonical插件</strong>，就不推荐了。可以在你的博客地址/wp-admin/plugin-install.php页面中搜索<strong>Canonical</strong>，挑个星级高的，在线安装激活即可。</li>
</ol>
<h2>四、效果</h2>
<p>原来有一百多条<strong>重复的元说明</strong>，添加<strong>Canonical</strong>属性之后，现在还剩下5条，估计过段时间就没有了~~~</p>
<p>4b2f870d</p>
<p>相关文章:<ol>
<li><a href='http://www.allengao.com/blog/image-hosting-blog-selection.html' rel='bookmark' title='独立博客图片外链的选择'>独立博客图片外链的选择</a></li>
<li><a href='http://www.allengao.com/blog/godaddy-free-web-hosting-imagehosting-subdomain.html' rel='bookmark' title='使用Godaddy带广告免费空间做图片外链服务器'>使用Godaddy带广告免费空间做图片外链服务器</a></li>
<li><a href='http://www.allengao.com/blog/nndnndnndnnd.html' rel='bookmark' title='NND,Godaddy说撞墙就撞墙了'>NND,Godaddy说撞墙就撞墙了</a></li>
<li><a href='http://www.allengao.com/blog/use-google-app-engine-python-blog-blogging.html' rel='bookmark' title='转到Google App Engine写博客？'>转到Google App Engine写博客？</a></li>
<li><a href='http://www.allengao.com/blog/wordpress27-upgrage.html' rel='bookmark' title='wordpress2.7升级指南'>wordpress2.7升级指南</a></li>
</ol></p><a href="http://www.allengao.com/blog/wordpress-canonical-permalink-meta-tag-title.html">本文链接: http://www.allengao.com/blog/wordpress-canonical-permalink-meta-tag-title.html</a>
<h3><strong><span style="color: #ff0000;">申请免费的<a title="免费伪顶级域名" href="http://www.co.cc/?id=156492&lang=zh-CN" target="_blank">yourname.co.cc</a>（免费域名），外加<a href="http://code.google.com/p/gapproxy/" target="_blank">Gapproxy</a>（免费程序）和<a title="GAE注册与部署" href="http://www.allengao.com/blog/register-gae-google-app-engine-apply.html" target="_blank">GAE</a>（免费空间），做自己专享的免费代理服务器</span></strong></h3>
<br/><a href="http://www.allengao.com/blog/swagbucks-wow.html" rel="bookmark" target ="_blank"title="Permalink to SwagBucks重出江湖">强烈推荐：搜索赚钱-1星期5美元零花钱</a><br/>
<p>© AG for <a href="http://www.allengao.com">AG's blog - 好大一蜘蛛</a>, 2008-2009. <a href="http://digu.com/allengo" target="_blank">跟AG一起嘀咕</a>  or <a href="http://twa.sh/user/AGatHere" target="_blank">Follow AG</a> or <a href="http://twa.sh/user/AGsATM" target="_blank">Follow AG网赚分推</a> <br /><a href="http://www.allengao.com/blog/wordpress-canonical-permalink-meta-tag-title.html#comments">22 条评论了，快来参与讨论</a> | 本文关键词: <a href="http://www.allengao.com/blog/tag/canonical" rel="tag">canonical</a>, <a href="http://www.allengao.com/blog/tag/permalink" rel="tag">permalink</a>, <a href="http://www.allengao.com/blog/tag/url" rel="tag">url</a>, <a href="http://www.allengao.com/blog/tag/%e5%94%af%e4%b8%80" rel="tag">唯一</a>, <a href="http://www.allengao.com/blog/tag/%e9%87%8d%e5%a4%8d%e7%9a%84%e5%85%83%e8%af%b4%e6%98%8e" rel="tag">重复的元说明</a>, <a href="http://www.allengao.com/blog/tag/%e9%87%8d%e5%a4%8d%e7%9a%84%e6%a0%87%e9%a2%98%e6%a0%87%e8%ae%b0" rel="tag">重复的标题标记</a></p><a target="_top" href="http://www.allengao.com/blog/swagbucks-wow.html"><img alt="Search & Win" title="搜索赚钱" border="0" src="http://prodegebanners.sitegrip.com/images/swagbucks-468x60Alt2.jpg"></a>]]></content:encoded>
			<wfw:commentRss>http://www.allengao.com/blog/wordpress-canonical-permalink-meta-tag-title.html/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>

