<?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>Just A Blog &#187; htaccess</title>
	<atom:link href="http://www.caxblog.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.caxblog.com</link>
	<description>街尾牛杂档——Since 1983</description>
	<lastBuildDate>Thu, 20 Oct 2011 10:22:40 +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>更改域名后301重定向WordPress固定链接</title>
		<link>http://www.caxblog.com/301-redirect-and-wordpress-permalink/</link>
		<comments>http://www.caxblog.com/301-redirect-and-wordpress-permalink/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 08:04:00 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[301重定向]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[域名]]></category>
		<category><![CDATA[搬家]]></category>
		<category><![CDATA[永久链接]]></category>

		<guid isPermaLink="false">http://www.caxblog.com/2008/06/224.html</guid>
		<description><![CDATA[这次域名的更换还继续保留以前的文章和所有的链接，更改成新域名后所有的文章固定链接都发生了变化，虽然老站还在继续运行只是不再更新而已，为了不白白浪费以前的工作和流量，可以通过了301重定向，把老站的文章通通转到过来。而且在linux主机下，通过修改根目录.htaccess文件就可以简单实现这个功能。 如果你想实现由： http://www.talkeight.cn/2008/02/47.html 直接转到下面链接的效果，以下的方法将很简单实用。 http://www.caxblog.com/2008/02/47.html 在使用301重定向时需要有几个前提条件： 保持新旧两站文章固定链接一致，搬迁时最好使用wp-dbmanager插件进行备份和还原数据库； 旧域名和空间必须要继续运行一定时间，大概要有两三个月； 空间主机类型为linux主机； 如果上面的条件都没有问题的话，打开旧空间跟目录的.htaccess文件，删除所有的语句，并加入保存以下语句： # BEGIN WordPress &#60;IfModule mod_rewrite.c&#62; Options +FollowSymLinks RewriteEngine on rewritecond %{http_host} ^www.your-old-domain.com [nc] rewriterule ^(.*)$ http://www.your-new-domain.com/$1 [L,R=301] &#60;/IfModule&#62; # END WordPress 通过这样301重定向不但平滑的过度了博客新老域名的更换，而且不会为带来很多的流量损失。 © Alex for Just A Blog, 2008. &#124; Permalink &#124; 47 comments &#124; Add to del.icio.us &#124; Follow me @attacker_hu Post tags: 301重定向, [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="博客永久链接301重定向插件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-plugin-for-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/12/462858.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">博客永久链接301重定向插件</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Caxblog今天将更改域名" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fchange-domain-to-caxblogcom%2F&from=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Caxblog今天将更改域名</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress设置永久链接技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress设置永久链接技巧</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress永久链接设置说明" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fdescription-of-permalink-setting-in-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress永久链接设置说明</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="通过SEO优化增加博客访问量" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-seo-skills%2F&from=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/462818.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">通过SEO优化增加博客访问量</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>这次<a href="http://www.caxblog.com/tag/%e5%9f%9f%e5%90%8d" target="_self">域名</a>的更换还继续保留以前的文章和所有的链接，更改成新域名后所有的文章<a href="http://www.caxblog.com/tag/%e6%b0%b8%e4%b9%85%e9%93%be%e6%8e%a5" target="_self">固定链接</a>都发生了变化，虽然老站还在继续运行只是不再更新而已，为了不白白浪费以前的工作和流量，可以通过了<a href="http://www.caxblog.com/tag/301%e9%87%8d%e5%ae%9a%e5%90%91" target="_self">301重定向</a>，把老站的文章通通转到过来。而且在linux主机下，通过修改根目录<a href="http://www.caxblog.com/tag/htaccess" target="_self">.htaccess</a>文件就可以简单实现这个功能。</p>
<p><a href="http://www.caxblog.com/wp-content/uploads/2008/09/301redirect-001.jpg"><img class="alignnone size-full wp-image-441" title="301redirect-001" src="http://www.caxblog.com/wp-content/uploads/2008/09/301redirect-001.jpg" alt="" width="292" height="53" /></a></p>
<p>如果你想实现由：</p>
<blockquote><p>http://www.talkeight.cn/2008/02/47.html</p></blockquote>
<p>直接转到下面<a href="http://www.caxblog.com/tag/%e6%b0%b8%e4%b9%85%e9%93%be%e6%8e%a5" target="_self">链接</a>的效果，以下的方法将很简单实用。</p>
<blockquote><p>http://www.caxblog.com/2008/02/47.html</p></blockquote>
<p><span id="more-224"></span>在使用<a href="http://www.caxblog.com/tag/301%e9%87%8d%e5%ae%9a%e5%90%91" target="_self">301重定向</a>时需要有几个前提条件：</p>
<ol>
<li>保持新旧两站文章<a href="http://www.caxblog.com/tag/%e6%b0%b8%e4%b9%85%e9%93%be%e6%8e%a5" target="_self">固定链接</a>一致，搬迁时最好使用wp-dbmanager插件进行备份和还原数据库；</li>
<li>旧域名和空间必须要继续运行一定时间，大概要有两三个月；</li>
<li>空间主机类型为linux主机；</li>
</ol>
<p>如果上面的条件都没有问题的话，打开旧空间跟目录的<a href="http://www.caxblog.com/tag/htaccess" target="_self">.htaccess</a>文件，删除所有的语句，并加入保存以下语句：</p>
<pre># BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
Options +FollowSymLinks
RewriteEngine on
rewritecond %{http_host} ^www.your-old-domain.com [nc]
rewriterule ^(.*)$ http://www.your-new-domain.com/$1 [L,R=301]
&lt;/IfModule&gt;
# END WordPress</pre>
<p>通过这样<a href="http://www.caxblog.com/tag/301%e9%87%8d%e5%ae%9a%e5%90%91" target="_self">301重定向</a>不但平滑的过度了博客新老<a href="http://www.caxblog.com/tag/%e5%9f%9f%e5%90%8d" target="_self">域名</a>的更换，而且不会为带来很多的流量损失。</p>
<hr />
<p>© Alex for <a href="http://www.caxblog.com">Just A Blog</a>, 2008. |
<a href="http://www.caxblog.com/301-redirect-and-wordpress-permalink/">Permalink</a> |
<a href="http://www.caxblog.com/301-redirect-and-wordpress-permalink/#comments">47 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.caxblog.com/301-redirect-and-wordpress-permalink/&title=更改域名后301重定向WordPress固定链接">del.icio.us</a> | 
Follow me <a href="http://twitter.com/attacker_hu">@attacker_hu</a>
<br/>
Post tags: <a href="http://www.caxblog.com/tag/301%e9%87%8d%e5%ae%9a%e5%90%91/" rel="tag">301重定向</a>, <a href="http://www.caxblog.com/tag/htaccess/" rel="tag">htaccess</a>, <a href="http://www.caxblog.com/tag/%e5%9f%9f%e5%90%8d/" rel="tag">域名</a>, <a href="http://www.caxblog.com/tag/%e6%90%ac%e5%ae%b6/" rel="tag">搬家</a>, <a href="http://www.caxblog.com/tag/%e6%b0%b8%e4%b9%85%e9%93%be%e6%8e%a5/" rel="tag">永久链接</a><br/>
</p>

<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="博客永久链接301重定向插件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-plugin-for-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/12/462858.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">博客永久链接301重定向插件</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Caxblog今天将更改域名" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fchange-domain-to-caxblogcom%2F&from=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Caxblog今天将更改域名</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress设置永久链接技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress设置永久链接技巧</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress永久链接设置说明" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fdescription-of-permalink-setting-in-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress永久链接设置说明</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="通过SEO优化增加博客访问量" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-seo-skills%2F&from=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/462818.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">通过SEO优化增加博客访问量</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.caxblog.com/301-redirect-and-wordpress-permalink/feed/</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>WordPress设置永久链接技巧</title>
		<link>http://www.caxblog.com/permalink-setting-skills-in-wordpress/</link>
		<comments>http://www.caxblog.com/permalink-setting-skills-in-wordpress/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 07:38:18 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[搜索引擎]]></category>
		<category><![CDATA[永久链接]]></category>

		<guid isPermaLink="false">http://www.talkeight.cn/2008/02/44.html</guid>
		<description><![CDATA[在新安装的WordPress里面，默认的文章链接动态的链接形式：http: //www.caxblog.com/?p=44 这种形式的链接是很不利于搜索引擎收录的。如果想对搜索引擎友好一点，就需要我们在安装 WordPress后进行文章固定链接的设置，给文章一个伪静态的永久链接地址。在Wordpress后台你可以把链接设置成：http://www.yourdomain.com/2008/sample-post/或者http://www.yourdomain.com/archives/254.html 要实现这个伪静态链接的的前提是你的博客主机支持mod_rewrite。把wordpress根目录下的.htaccess文件，设置成“777”，具有可写的权限。如果没有这个文件，可以新建一个txt文件，上传到空间根目录，再利用FTP修改文件名。 但是如果是用Windows主机，服务器不支持的时候，可以在域名地址后先加上index.php，比如你想有类似这样的链接： http://www.yourdomain.com/2008/sample-post/ 就可以设置成这样： http://www.yourdomain.com/index.php/2008/sample-post/ 为了更好的使用WordPress，推荐使用LAMP型主机。更多固定链接设置的说明，可以参考：WordPress永久链接设置说明 © Alex for Just A Blog, 2008. &#124; Permalink &#124; 4 comments &#124; Add to del.icio.us &#124; Follow me @attacker_hu Post tags: htaccess, SEO, 搜索引擎, 永久链接<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="通过SEO优化增加博客访问量" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-seo-skills%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/462818.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">通过SEO优化增加博客访问量</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress永久链接设置说明" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fdescription-of-permalink-setting-in-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress永久链接设置说明</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="博客永久链接301重定向插件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-plugin-for-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/12/462858.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">博客永久链接301重定向插件</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="更改域名后301重定向WordPress固定链接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">更改域名后301重定向WordPress固定链接</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Twitter widget+后续近况~~" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Ftwitter-widget-and-recent-developments%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/14/462862.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Twitter widget+后续近况~~</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>在新安装的<a href="http://www.caxblog.com/tag/wordpress/" target="_self">WordPress</a>里面，默认的<a href="http://www.caxblog.com/tag/%e6%b0%b8%e4%b9%85%e9%93%be%e6%8e%a5" target="_self">文章链接</a>动态的链接形式：http: //www.caxblog.com/?p=44</p>
<p>这种形式的链接是很不利于<a href="http://www.caxblog.com/tag/%e6%90%9c%e7%b4%a2%e5%bc%95%e6%93%8e" target="_self">搜索引擎收录</a>的。如果想对<a href="http://www.caxblog.com/tag/%e6%90%9c%e7%b4%a2%e5%bc%95%e6%93%8e/" target="_self">搜索引擎</a>友好一点，就需要我们在安装 <strong>WordPress</strong>后进行文章固定链接的设置，给文章一个伪静态的永久链接地址。在Wordpress后台你可以把<strong>链接</strong>设置成：http://www.yourdomain.com/2008/sample-post/或者http://www.yourdomain.com/archives/254.html</p>
<p><span id="more-44"></span>要实现这个伪静态链接的的前提是你的博客主机支持mod_rewrite。把wordpress根目录下的<a href="http://www.caxblog.com/tag/htaccess" target="_self">.htaccess文件</a>，设置成“777”，具有可写的权限。如果没有这个文件，可以新建一个txt文件，上传到空间根目录，再利用FTP修改文件名。</p>
<p>但是如果是用Windows主机，服务器不支持的时候，可以在域名地址后先加上index.php，比如你想有类似这样的链接：</p>
<blockquote><p>http://www.yourdomain.com/2008/sample-post/</p></blockquote>
<p>就可以设置成这样：</p>
<blockquote><p>http://www.yourdomain.com/index.php/2008/sample-post/</p></blockquote>
<p>为了更好的使用<strong>WordPress</strong>，推荐使用LAMP型主机。更多固定链接设置的说明，可以参考：<a href="http://www.caxblog.com/description-of-permalink-setting-in-wordpress/" target="_self">WordPress永久链接设置说明</a></p>
<hr />
<p>© Alex for <a href="http://www.caxblog.com">Just A Blog</a>, 2008. |
<a href="http://www.caxblog.com/permalink-setting-skills-in-wordpress/">Permalink</a> |
<a href="http://www.caxblog.com/permalink-setting-skills-in-wordpress/#comments">4 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.caxblog.com/permalink-setting-skills-in-wordpress/&title=WordPress设置永久链接技巧">del.icio.us</a> | 
Follow me <a href="http://twitter.com/attacker_hu">@attacker_hu</a>
<br/>
Post tags: <a href="http://www.caxblog.com/tag/htaccess/" rel="tag">htaccess</a>, <a href="http://www.caxblog.com/tag/seo/" rel="tag">SEO</a>, <a href="http://www.caxblog.com/tag/%e6%90%9c%e7%b4%a2%e5%bc%95%e6%93%8e/" rel="tag">搜索引擎</a>, <a href="http://www.caxblog.com/tag/%e6%b0%b8%e4%b9%85%e9%93%be%e6%8e%a5/" rel="tag">永久链接</a><br/>
</p>

<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="通过SEO优化增加博客访问量" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-seo-skills%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/462818.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">通过SEO优化增加博客访问量</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress永久链接设置说明" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fdescription-of-permalink-setting-in-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress永久链接设置说明</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="博客永久链接301重定向插件" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-plugin-for-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/12/462858.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">博客永久链接301重定向插件</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="更改域名后301重定向WordPress固定链接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2F301-redirect-and-wordpress-permalink%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">更改域名后301重定向WordPress固定链接</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Twitter widget+后续近况~~" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Ftwitter-widget-and-recent-developments%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fpermalink-setting-skills-in-wordpress%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/14/462862.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Twitter widget+后续近况~~</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.caxblog.com/permalink-setting-skills-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

