<?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; permalinks</title>
	<atom:link href="http://www.jiucool.com/tag/permalinks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jiucool.com</link>
	<description>Say That What I Can Say!</description>
	<lastBuildDate>Thu, 12 Jan 2012 23:09:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://www.jiucool.com/?pushpress=hub'/>
		<item>
		<title>WordPress永久链接(Permalinks)更换之Redirection</title>
		<link>http://www.jiucool.com/wp-permalinks-redirection/</link>
		<comments>http://www.jiucool.com/wp-permalinks-redirection/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 09:38:01 +0000</pubDate>
		<dc:creator>久酷</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[permalink redireciton]]></category>
		<category><![CDATA[permalinks]]></category>
		<category><![CDATA[redirection]]></category>
		<category><![CDATA[wp plugin]]></category>
		<category><![CDATA[wp插件]]></category>

		<guid isPermaLink="false">http://www.jiucool.com/?p=5085</guid>
		<description><![CDATA[WordPress 最大优点之一，就是我们可以自己随意定义自己网站的显示地址！比如有：



/%year%/%monthnum%/%day%/%postname%/

/%year%/%monthnum%/%postname%/

/archives/%post_id%

/%post_id%.html

<span class="readmore"><a href="http://www.jiucool.com/wp-permalinks-redirection/" title="WordPress永久链接(Permalinks)更换之Redirection">Read More: 1126 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>WordPress 最大优点之一，就是我们可以自己随意定义自己网站的显示地址！比如有：</p>
<ol>
<li>/%year%/%monthnum%/%day%/%postname%/</li>
<li>/%year%/%monthnum%/%postname%/</li>
<li>/archives/%post_id%</li>
<li>/%post_id%.html</li>
<li>/%year%/%monthnum%/%postname%.html</li>
</ol>
<p>等等这些自定义永久链接形式！不过在我们更换永久链接形式之后，搜索引擎已经收录了之前的地址，访客从搜索引擎进来刚开始是通过以前的地址进来的，如果你不加以处理的话就会显示网站的404页面了！那么如何解决这个问题呢？</p>
<ol>
<li>我们可以通过自己添加代码来达到目的，不过感觉很麻烦大家可以参考下：<a href="http://blog.2i2j.com/2007/06/modified-permalink-redirect.html" target="_blank">http://blog.2i2j.com/2007/06/modified-permalink-redirect.html</a> </li>
<li>其次呢，我们就可以通过简单的插件来实现此功能啦！也是最方便的方法！不管你怎样换模板，换多少次，都没问题，不要重复修改代码！</li>
</ol>
<p>唉……我也是一个比较爱折腾的人，在上个月PR还没有更新的时候我就更换了一次永久链接，由开始的/post/%post_id%.html换成了/%year%/%monthnum%/%postname%/形式，之后感觉链接有点深又改成了/%postname%/也就是现在的链接形式！不过搜索引擎已经收录了之前的所有链接形式，要是不处理的话就全显示成404页面了。</p>
<p>这方面的插件我用过的主要有以下几个吧：</p>
<ol>
<li><a title="Visit plugin homepage" href="http://www.deanlee.cn/wordpress/permalinks-migration-plugin/" target="_blank">Dean&#8217;s Permalinks Migration</a> 这个插件很简单，激活后只要在后台设置里将你修改永久链接之前的结构写进去就OK！</li>
<li><a title="Visit plugin homepage" href="http://scott.yang.id.au/code/permalink-redirect/" target="_blank">Permalink Redirect</a> 这款插件也可以实现上面那款插件的功能，还可以实现你的FEED进行重定向。可以将以前的多种永久链接形式重定向为目前链接结构，在Old Permalink Structures里每行写一种之前的旧的链接形式即可。</li>
<li><a title="Visit plugin homepage" href="http://urbangiraffe.com/plugins/redirection/" target="_blank">Redirection</a> 这款插件相对来说较强大，设置选项也较多，详情可以参考<br />
 <a href="http://blog.2i2j.com/2007/07/introduce-redirection-plugins-for-wordpress.html" target="_blank">Redirection &#8211; 让wordpress转向随心所欲 </a> 有前人介绍咱就不必多说了。</li>
</ol>
<p>因为之前已经改过两次Permalinks了，出现了两种以前的不同<a href="http://www.jiucool.com/wp-permalinks-redirection/">链接</a>形式，并且也都被搜索引擎收录了！我现在用了上面的第2款插件，不论哪种链接形式进来都不会显示404了！因为搜索引擎收录了两不同形式的链接形式，只启用Dean&#8217;s <a href="http://www.jiucool.com/tag/permalinks/" class="st_tag internal_tag" rel="tag" title="Posts tagged with permalinks">Permalinks</a> Migration只能将一种之前链接形式重定向，所以为了让两种链接形式都重定向到现在的网址只启用第二款插件即可，可以将多种链接形式同时重定向，每行一种结构。至于第三款插件，刚刚装上还没研究透彻，再研究研究…… <img src='http://www.jiucool.com/wp/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p>
<p>Related posts:<ol>
<li><a href='http://www.jiucool.com/wordpress-yong-jiu-lian-jie-zi-ding-yi/' rel='bookmark' title='wordpress永久链接自定义'>wordpress永久链接自定义</a></li>
<li><a href='http://www.jiucool.com/permalinks-have-changed/' rel='bookmark' title='网站永久链接形式进行了平滑更换'>网站永久链接形式进行了平滑更换</a></li>
<li><a href='http://www.jiucool.com/the-ultimate-solution-to-prevent-spam/' rel='bookmark' title='终极防范Spam的办法'>终极防范Spam的办法</a></li>
<li><a href='http://www.jiucool.com/10-bu-shi-xian-wordpress-sou-suo-yin-qing-di-you-hua-wordpress-seo/' rel='bookmark' title='10步实现WordPress搜索引擎的优化( wordpress seo )'>10步实现WordPress搜索引擎的优化( wordpress seo )</a></li>
<li><a href='http://www.jiucool.com/2009-happy-new-year/' rel='bookmark' title='2009到,新年快乐'>2009到,新年快乐</a></li>
<li><a href='http://www.jiucool.com/wordpress-di-cha-jian-home-page-for-wordpress-da-zao-ni-zi-ji-ge-xing-hua-di-shou-ye/' rel='bookmark' title='wordpress的插件Home page for WordPress：打造你自己个性化的首页'>wordpress的插件Home page for WordPress：打造你自己个性化的首页</a></li>
<li><a href='http://www.jiucool.com/wordpress-di-cha-jian-email-users-gei-zhu-ce-ni-blog-di-yong-hu-qun-fa-you-jian/' rel='bookmark' title='wordpress的插件Email Users：给注册你blog的用户群发邮件'>wordpress的插件Email Users：给注册你blog的用户群发邮件</a></li>
<li><a href='http://www.jiucool.com/in-2009-the-real/' rel='bookmark' title='真正的2009年了'>真正的2009年了</a></li>
</ol></p><br/>
<a href="http://www.jiucool.com/godaddy-domain" target="_blank"><img src="http://pic.jiucool.com/2010/godaddy_score_savings_468x60.jpg" /></a>
<hr />
<p><small>© 久酷 for <a href="http://www.jiucool.com">久酷</a>, 2009. |
<a href="http://www.jiucool.com/wp-permalinks-redirection/" target="_blank">Permalink</a> |
<a href="http://www.jiucool.com/wp-permalinks-redirection/#comments">37 comments</a> |
Twitter:
<a href="http://twitter.com/jiucool" target="_blank">@jiucool</a>
<br/>
Post tags: <a href="http://www.jiucool.com/tag/301/" rel="tag">301</a>, <a href="http://www.jiucool.com/tag/permalink-redireciton/" rel="tag">permalink redireciton</a>, <a href="http://www.jiucool.com/tag/permalinks/" rel="tag">permalinks</a>, <a href="http://www.jiucool.com/tag/redirection/" rel="tag">redirection</a>, <a href="http://www.jiucool.com/tag/wordpress/" rel="tag">WordPress</a>, <a href="http://www.jiucool.com/tag/wp-plugin/" rel="tag">wp plugin</a>, <a href="http://www.jiucool.com/tag/wp%e6%8f%92%e4%bb%b6/" rel="tag">wp插件</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.jiucool.com/wp-permalinks-redirection/feed/</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
		<item>
		<title>网站永久链接形式进行了平滑更换</title>
		<link>http://www.jiucool.com/permalinks-have-changed/</link>
		<comments>http://www.jiucool.com/permalinks-have-changed/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 09:57:05 +0000</pubDate>
		<dc:creator>久酷</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[5.网络技术]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[permalinks]]></category>
		<category><![CDATA[永久链接]]></category>

		<guid isPermaLink="false">http://www.jiucool.com/?p=4968</guid>
		<description><![CDATA[以前用的永久链接形式是%post_id%.html 是以 html结尾的!不过这种形式的对于SEO不太友好吧!于是今天改了一下.永久链接形式改为了%postname%/看了下广大朋友们大多数是这样设置的!

不过以前的文章slug全部为汉字形式的!汉字这种形式,只有IE不认识,会显示成不认识的东西!而FF Opera下会显示正常的!在搜索引擎当中,号称全球最大中文搜索引擎的某某也不认识汉字!而google 等搜索引擎可以认识!所以下午的时候又将接近一千篇文章的slug用字母进行替换!所用到的辅助插件为headspace2 .

<span class="readmore"><a href="http://www.jiucool.com/permalinks-have-changed/" title="网站永久链接形式进行了平滑更换">Read More: 434 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<div style="float: right"><a title="wordpress" rel="tag" href="http://www.jiucool.com/tag/wordpress"><img src="http://www.jiucool.com/images/wordpress.jpg" alt="wordpress" /></a></div>
<p>以前用的永久链接形式是%post_id%.html 是以 html结尾的!不过这种形式的对于SEO不太友好吧!于是今天改了一下.永久链接形式改为了%postname%/看了下广大朋友们大多数是这样设置的!</p>
<p>不过以前的文章slug全部为汉字形式的!汉字这种形式,只有IE不认识,会显示成不认识的东西!而FF Opera下会显示正常的!在搜索引擎当中,号称全球最大中文搜索引擎的某某也不认识汉字!而google 等搜索引擎可以认识!所以下午的时候又将接近一千篇文章的slug用字母进行替换!所用到的辅助插件为headspace2 .</p>
<p>因为更改了永久链接形式,为了不让来自搜索引擎朋友进来而显示404页面!进行了301重定向!所以以前的链接进来仍然有效^_ ^:lol:  <img src='http://www.jiucool.com/wp/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p>
<p>所用到的相关辅助插件为:</p>
<ol>
<li><a title="Visit plugin homepage" href="http://urbangiraffe.com/plugins/headspace2/">HeadSpace2 </a>用来批量修改文章slug</li>
<li><a title="Visit plugin homepage" href="http://blog.2i2j.com/">wp slug translate </a>用来自动生成文章slug</li>
<li><a title="Visit plugin homepage" href="http://www.deanlee.cn/wordpress/permalinks-migration-plugin/">Dean&#8217;s Permalinks Migration</a>这个呢,则是用来进行新旧链接重定向的.</li>
</ol>
<p>No related posts.</p><br/>
<a href="http://www.jiucool.com/godaddy-domain" target="_blank"><img src="http://pic.jiucool.com/2010/godaddy_score_savings_468x60.jpg" /></a>
<hr />
<p><small>© 久酷 for <a href="http://www.jiucool.com">久酷</a>, 2008. |
<a href="http://www.jiucool.com/permalinks-have-changed/" target="_blank">Permalink</a> |
<a href="http://www.jiucool.com/permalinks-have-changed/#comments">20 comments</a> |
Twitter:
<a href="http://twitter.com/jiucool" target="_blank">@jiucool</a>
<br/>
Post tags: <a href="http://www.jiucool.com/tag/website/" rel="tag">5.网络技术</a>, <a href="http://www.jiucool.com/tag/links/" rel="tag">links</a>, <a href="http://www.jiucool.com/tag/permalink/" rel="tag">permalink</a>, <a href="http://www.jiucool.com/tag/permalinks/" rel="tag">permalinks</a>, <a href="http://www.jiucool.com/tag/%e6%b0%b8%e4%b9%85%e9%93%be%e6%8e%a5/" rel="tag">永久链接</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.jiucool.com/permalinks-have-changed/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>wordpress永久链接自定义</title>
		<link>http://www.jiucool.com/wordpress-yong-jiu-lian-jie-zi-ding-yi/</link>
		<comments>http://www.jiucool.com/wordpress-yong-jiu-lian-jie-zi-ding-yi/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 11:52:07 +0000</pubDate>
		<dc:creator>久酷</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[permalinks]]></category>
		<category><![CDATA[permanent]]></category>
		<category><![CDATA[permanent links]]></category>

		<guid isPermaLink="false">http://www.jiucool.com/?p=1259</guid>
		<description><![CDATA[%year% 年份， %monthnum% 月份， %day% 日期， %hour% 小时， %minute% 分钟， %second% 秒数， %postname% 文章缩略名， %post_id% 文章ID， %category% 分类名称， %author% 作者名称，

No related posts.





© 久酷 for 久酷, 2008. &#124;

Permalink &#124;

<span class="readmore"><a href="http://www.jiucool.com/wordpress-yong-jiu-lian-jie-zi-ding-yi/" title="wordpress永久链接自定义">Read More: 119 Words Totally</a></span>]]></description>
			<content:encoded><![CDATA[<p>%<a href="http://www.jiucool.com/tag/year/" class="st_tag internal_tag" rel="tag" title="Posts tagged with year">year</a>% 年份， %monthnum% 月份， %day% 日期， %hour% 小时， %minute% 分钟， %second% 秒数， %postname% 文章缩略名， %post_id% 文章ID， %category% 分类名称， %author% 作者名称，</p>
<p>No related posts.</p><br/>
<a href="http://www.jiucool.com/godaddy-domain" target="_blank"><img src="http://pic.jiucool.com/2010/godaddy_score_savings_468x60.jpg" /></a>
<hr />
<p><small>© 久酷 for <a href="http://www.jiucool.com">久酷</a>, 2008. |
<a href="http://www.jiucool.com/wordpress-yong-jiu-lian-jie-zi-ding-yi/" target="_blank">Permalink</a> |
<a href="http://www.jiucool.com/wordpress-yong-jiu-lian-jie-zi-ding-yi/#comments">No comment</a> |
Twitter:
<a href="http://twitter.com/jiucool" target="_blank">@jiucool</a>
<br/>
Post tags: <a href="http://www.jiucool.com/tag/links/" rel="tag">links</a>, <a href="http://www.jiucool.com/tag/permalinks/" rel="tag">permalinks</a>, <a href="http://www.jiucool.com/tag/permanent/" rel="tag">permanent</a>, <a href="http://www.jiucool.com/tag/permanent-links/" rel="tag">permanent links</a>, <a href="http://www.jiucool.com/tag/wordpress/" rel="tag">WordPress</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.jiucool.com/wordpress-yong-jiu-lian-jie-zi-ding-yi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

