<?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; htaccess</title>
	<atom:link href="http://www.fendou.info/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fendou.info</link>
	<description>WordPress&#124;SEO&#124;Web&#124;Linux&#124;Windows&#124;Android</description>
	<lastBuildDate>Wed, 16 May 2012 07:29:10 +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>Discuz 论坛URL静态化设置</title>
		<link>http://www.fendou.info/discuz-forum-set-static-url/</link>
		<comments>http://www.fendou.info/discuz-forum-set-static-url/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 10:56:45 +0000</pubDate>
		<dc:creator>dev</dc:creator>
				<category><![CDATA[网站制作]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Discuz]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[URL静态化]]></category>
		<category><![CDATA[论坛]]></category>

		<guid isPermaLink="false">http://www.fendou.info/?p=764</guid>
		<description><![CDATA[最近搭建一个Discuz 论坛，在搭建过程中遇到了一个比较棘手问题，在设置Discuz 论坛url静态化后论坛不能正常访问，总是返回找不到页面。

在参考了官方Discuz 论坛URL静态化设置的FAQ后重新设置，但问题依旧，开始还以为是租用的空间的问题，联系空间商得知可能是由于我论坛的 .htaccess文件有问题。 <a href="http://www.fendou.info/discuz-forum-set-static-url/">继续阅读 <span class="meta-nav">&#8594;</span></a><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="111" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Discuz 7.2 安装过程中遇到的两个小错误" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-7-2-install-problem%2F&from=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-forum-set-static-url%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/11/29/11646812.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Discuz 7.2 安装过程中遇到的两个小错误</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="CISCO VPN 设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fcisco-vpn-set%2F&from=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-forum-set-static-url%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/10/17/9339854.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">CISCO VPN 设置</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="iPhone IPOD VPN设置图文教程" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fiphone-vpn-ipod-vpn-setting%2F&from=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-forum-set-static-url%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/10/16/9293543.png" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">iPhone IPOD VPN设置图文教程</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Gmail设置技巧：过滤规则设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fgmail-settings-skill-filter-setting%2F&from=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-forum-set-static-url%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/10/16/9293839.png" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Gmail设置技巧：过滤规则设置</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Apache虚拟主机设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fhobby%2Fweb-design%2Fapache-add-virtualhost.html&from=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-forum-set-static-url%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/11/02/10189895.gif" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Apache虚拟主机设置</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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>最近搭建一个Discuz 论坛，在搭建过程中遇到了一个比较棘手问题，在设置Discuz 论坛url静态化后论坛不能正常访问，总是返回找不到页面。</p>
<p>在参考了官方<a title="discuz 论坛url静态化设置" href="http://www.fendou.info/favorite/discuz-forum-set-static-url.html" target="_blank">Discuz 论坛URL静态化设置</a>的FAQ后重新设置，但问题依旧，开始还以为是租用的空间的问题，联系空间商得知可能是由于我论坛的 .htaccess文件有问题。</p>
<p><strong>.htaccess是什么？</strong></p>
<p>Unix、Linux系统或者是任何版本的Apache Web服务器都是支持.htaccess的，但是有的主机服务商可能不允许你自定义自己的.htaccess文件。国内的大多数虚拟主机就没有这个功能。我所知道的提供这个功能的有康盛世纪（就是Discuz的论坛服务商）。</p>
<p>启用.htaccess，需要修改httpd.conf，启用AllowOverride，并可以用AllowOverride限制特定命令的使用。如果需要使用.htaccess以外的其他文件名，可以用AccessFileName指令来改变。例如，需要使用.config ，则可以在服务器配置文件中按以下方法配置：AccessFileName .config 。</p>
<p>笼统地说，.htaccess可以帮我们实现包括：文件夹密码保护、用户自动重定向、自定义错误页面、改变你的文件扩展名、封禁特定IP地址的用户、只允许特定IP地址的用户、禁止目录列表，以及使用其他文件作为index文件等一些功能。<span id="more-764"></span></p>
<p><strong>Discuz 论坛URL静态化 .htaccess设置</strong></p>
<p>下面是discuz官方给出的.htaccess设置规则，除了论坛目录地址需要修改，其他的不动。</p>
<pre>
# 将 RewriteEngine 模式打开
RewriteEngine On
# 修改以下语句中的 /discuz 为你的论坛目录地址，如果程序放在根目录中，请将 /discuz 修改为 /
RewriteBase /discuz
# Rewrite 系统规则请勿修改
RewriteRule ^archiver/((fid|tid)-[\w\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&#038;page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&#038;extra=page\%3D$3&#038;page=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
</pre>
<p><strong>这里要重点说明一下，因为我就是在设置 .htaccess文件时犯的错误：</strong></p>
<p><span style="color: #ff0000;">1.在编辑 .htaccess文件时不能直接用记事本编辑，而应该用写字板或其他编辑器来编辑。</span></p>
<p><span style="color: #ff0000;">2.在论坛目录设置的时候要特别注意，RewriteBase /discuz 这里是指论坛目录，也就是你论坛主页存放的目录，而且 .htaccess这个文件也必须放在这个目录下面。</span></p>
<p>以上是我在URL静态化设置过程中遇到的问题，希望对遇到同样问题的朋友有所帮助。附:<a href="http://faq.comsenz.com/viewnews-790">官方Discuz URL静态化应用FAQ</a></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="111" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Discuz 7.2 安装过程中遇到的两个小错误" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-7-2-install-problem%2F&from=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-forum-set-static-url%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/11/29/11646812.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Discuz 7.2 安装过程中遇到的两个小错误</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="CISCO VPN 设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fcisco-vpn-set%2F&from=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-forum-set-static-url%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/10/17/9339854.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">CISCO VPN 设置</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="iPhone IPOD VPN设置图文教程" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fiphone-vpn-ipod-vpn-setting%2F&from=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-forum-set-static-url%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/10/16/9293543.png" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">iPhone IPOD VPN设置图文教程</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Gmail设置技巧：过滤规则设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fgmail-settings-skill-filter-setting%2F&from=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-forum-set-static-url%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/10/16/9293839.png" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Gmail设置技巧：过滤规则设置</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Apache虚拟主机设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fhobby%2Fweb-design%2Fapache-add-virtualhost.html&from=http%3A%2F%2Fwww.fendou.info%2Fdiscuz-forum-set-static-url%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/11/02/10189895.gif" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Apache虚拟主机设置</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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.fendou.info/discuz-forum-set-static-url/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>博客更换域名后需要做的11件事</title>
		<link>http://www.fendou.info/wordpress-change-new-domain/</link>
		<comments>http://www.fendou.info/wordpress-change-new-domain/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 15:43:31 +0000</pubDate>
		<dc:creator>dev</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[博客搬家]]></category>
		<category><![CDATA[换域名]]></category>
		<category><![CDATA[重定向]]></category>

		<guid isPermaLink="false">http://www.fendou.info/?p=746</guid>
		<description><![CDATA[最近网络局势这么不稳定，博客搬家是家常便饭。用CN域名开办个人博客的博主们恐怕要转投其他域名的怀抱了。博客更换域名后应该做哪些后续工作呢？转了一篇文章供自己学习并和大家分享。

WordPress 博客更换新域名并不难，也用不了多少时间，只需要 8 个步骤，但是域名更换之后，还有一些额外的事要做，把以下 11 件事做完了，你的博客启用新域名之后看起来就和启用新域名之前几乎一样了。 <a href="http://www.fendou.info/wordpress-change-new-domain/">继续阅读 <span class="meta-nav">&#8594;</span></a><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="111" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="博客快速留言技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fblog-post-tips%2F&from=http%3A%2F%2Fwww.fendou.info%2Fwordpress-change-new-domain%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/12/09/12105656.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">博客快速留言技巧</font>
                    </a>
                </td>
                <td width="111" 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?url=http%3A%2F%2Fwww.fendou.info%2Fwordpress-commentators-link-redirect-code%2F&from=http%3A%2F%2Fwww.fendou.info%2Fwordpress-change-new-domain%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/09/14/30849780.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 留言链接重定向代码</font>
                    </a>
                </td>
                <td width="111" 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?url=http%3A%2F%2Fwww.fendou.info%2Fwordpress-add-share-code%2F&from=http%3A%2F%2Fwww.fendou.info%2Fwordpress-change-new-domain%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/10/16/9293548.png" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 添加分享和转帖代码</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="免费co.cc域名申请与设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Ffree-co-cc-domain-apply-and-setting%2F&from=http%3A%2F%2Fwww.fendou.info%2Fwordpress-change-new-domain%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/10/16/9293376.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">免费co.cc域名申请与设置</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="拿福能千人挑战" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fnuffnang-challenge-1000%2F&from=http%3A%2F%2Fwww.fendou.info%2Fwordpress-change-new-domain%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/09/18/31967633.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">拿福能千人挑战</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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>最近网络局势这么不稳定，博客搬家是家常便饭。用CN域名开办个人博客的博主们恐怕要转投其他域名的怀抱了。博客更换域名后应该做哪些后续工作呢？转了一篇文章供自己学习并和大家分享。</p>
<p>WordPress 博客更换新域名并不难，也用不了多少时间，只需要 8 个步骤，但是域名更换之后，还有一些额外的事要做，把以下 11 件事做完了，你的博客启用新域名之后看起来就和启用新域名之前几乎一样了。<span id="more-746"></span></p>
<p><strong>一、新域名的重定向</strong></p>
<p>更换域名的时候，需要在旧域名的 .htaccess 文件上进行 301 永久重定向，同时在新域名的 .htaccess 文件上也要做 301 重定向。</p>
<p>1、有 www 还是没有 www ?</p>
<p>要使得精博的域名固定为 jingpin,org，于是就使用以下的代码：</p>
<pre>RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.jingpin.org
RewriteRule (.*) http://jingpin.org/$1 [R=301,L]</pre>
<p>同样，如果要把精博的域名固定为 www.jingpin.org，就把上面代码里面的 www.jingpin.org 和 jingpin.org 调换个位置就可以了。</p>
<p>2. index.php 重定向</p>
<p>开始的时候 http://jingpin.org 和 http://jingpin.org/index.php 都会指向精博的主页，于是我在上面代码的下面添加以下代码：</p>
<pre>RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/
RewriteRule ^(([^/]+/)*)index\.php$ http://jingpin.org/$1 [R=301,L]</pre>
<p>这样，http://jingpin.org/index.php 就被重新定向到 http://jingpin.org 了。这样做一是为了避免重复内容，二是为了把流量都集中到一起。</p>
<p><strong>二、更新 FeedBurner 的 RSS Feed</strong></p>
<p>如果你有通过 FeedBurner 烧制 RSS Feed，那么只要把原始 Feed 地址上的域名改为新域名就可以了。</p>
<p><strong>三、更新 FeedSky 的 RSS Feed</strong></p>
<p>如果你 FeedSky 上的 “Feed 源地址” 是 Feedburner 的地址，那就可以不用改了。</p>
<p><strong>四、更新 TwitterFeed</strong></p>
<p>如果你有通过 TwitterFeed 同步博客的原始 RSS Feed 到 Twitter 等网站，那么就需要更新 RSS Feed。</p>
<p><strong>五、更新 Google AdSense 设置</strong></p>
<p>如果你的 Google AdSense 选择了“只允许某些网站显示我帐户的广告” 这一项，那么你需要把你的新域名添加进去。</p>
<p><strong>六、Google 网站管理员工具设置</strong></p>
<p>Google 网站管理员工具设置主要更新三样东西：</p>
<p>1、添加并验证网站；</p>
<p>2、提交新网站的 Sitemap；</p>
<p>3、把旧域名 301 永久重定向到新域名。</p>
<p><strong>七、Google 朋友群</strong></p>
<p>如果你的博客上有使用 Google 朋友群相关小工具，那么就需要修改网站地址。</p>
<p><strong>八、更新 Google 自定义搜索</strong></p>
<p>如果你的 WordPress 博客有使用 Google 自定义搜索，那么博客更换域名之后，就需要删除旧的域名，并添加新的域名。如果使用的是 Iframe 格式，则还需要把搜索框代码里面的旧域名改为新域名。</p>
<p><strong>九、Google Analytics 设置更新</strong></p>
<p>主要做两个步骤：</p>
<p>1、创建新的网站配置文件；</p>
<p>2、把 Google Analytics 的代码插入新域名的 WordPress 中。</p>
<p>如果你之前旧域名博客采用的是异步跟踪代码，那么只需要把代码里面的“网络资源 ID” 改为新的就可以了。</p>
<p><strong>十、修改 WordPress 主题的页脚</strong></p>
<p>一般的博客都会在 WordPress 主题的页脚 （Footer）上添加版权或者其他信息，如果这些信息上含有原来域名，那就需要把它们改为新域名。</p>
<p><strong>十一、通知你的读者</strong></p>
<p>一切准备就绪之后，告诉你的读者你的博客更换了新域名。我原以为旧域名的原始 RSS Feed 不再有效，其实只要原来的域名还是我的并且能正常解析，那么旧域名的原始 RSS Feed 还是可以正常订阅的。</p>
<p>除了以上 11 件事，更换域名之后还有更多的事要做，比如，更换你在豆瓣、Twitter、Facebook 等社会媒体上的博客资料，更新名片上的博客地址，更改邮件上的签名，等等，不过由于旧域名已经重新定向到新域名，所以这些事我觉得还可以慢慢来。</p>
<p><strong>本文链接地址:</strong> <a href="http://jingpin.org/wordpress-change-new-domain/">WordPress 博客更换域名后需要做的11件事</a></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="111" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="博客快速留言技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fblog-post-tips%2F&from=http%3A%2F%2Fwww.fendou.info%2Fwordpress-change-new-domain%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/12/09/12105656.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">博客快速留言技巧</font>
                    </a>
                </td>
                <td width="111" 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?url=http%3A%2F%2Fwww.fendou.info%2Fwordpress-commentators-link-redirect-code%2F&from=http%3A%2F%2Fwww.fendou.info%2Fwordpress-change-new-domain%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/09/14/30849780.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 留言链接重定向代码</font>
                    </a>
                </td>
                <td width="111" 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?url=http%3A%2F%2Fwww.fendou.info%2Fwordpress-add-share-code%2F&from=http%3A%2F%2Fwww.fendou.info%2Fwordpress-change-new-domain%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/10/16/9293548.png" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 添加分享和转帖代码</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="免费co.cc域名申请与设置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Ffree-co-cc-domain-apply-and-setting%2F&from=http%3A%2F%2Fwww.fendou.info%2Fwordpress-change-new-domain%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/10/16/9293376.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">免费co.cc域名申请与设置</font>
                    </a>
                </td>
                <td width="111" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="拿福能千人挑战" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.fendou.info%2Fnuffnang-challenge-1000%2F&from=http%3A%2F%2Fwww.fendou.info%2Fwordpress-change-new-domain%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 105px !important; height: 105px !important;" src="http://static.wumii.com/site_images/2011/09/18/31967633.jpg" width="105px" height="105px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 111px !important; font: 12px/15px arial !important; height: 45px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">拿福能千人挑战</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" 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.fendou.info/wordpress-change-new-domain/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

