<?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; Wordpress经验</title>
	<atom:link href="http://free5.org/tag/wordpress%e7%bb%8f%e9%aa%8c/feed/" rel="self" type="application/rss+xml" />
	<link>http://free5.org</link>
	<description>免费域名注册,解析,停靠;免费空间;免费代码;免费邮箱等免费资源的分享中心和集散地</description>
	<lastBuildDate>Wed, 09 May 2012 14:37:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>WordPress博客添加ping服务器加快搜索引擎收录</title>
		<link>http://free5.org/2010/06/28/add-a-ping-server-to-speed-up-wordpress-blog-search-engine-included/</link>
		<comments>http://free5.org/2010/06/28/add-a-ping-server-to-speed-up-wordpress-blog-search-engine-included/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 11:08:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress经验]]></category>
		<category><![CDATA[建站经验]]></category>
		<category><![CDATA[Wordpress经验]]></category>

		<guid isPermaLink="false">http://free5.org/?p=1109</guid>
		<description><![CDATA[ping服务对博客来说是件非常重要的工具，它可以在你发表文章后迅速通知搜索引擎，feed托管服务商和在线RSS阅读器更新。这对博客来说是相当重要的。这是我收集的ping服务器，网上的很多都是没有百度的服务器，我个人认为对中国博客来说还是比较有用的。（小知识：对于 WordPress 用户，添加Ping 服务 RPC 端点很简单，只要在后台的撰写选项的更新服务中，把下面的那些添加进去就行了，当然也可以去掉几个，如果添加过多的话发布文章时会很慢。） http://ping.baidu.com/ping/RPC2     http://rpc.pingomatic.com/     http://blogsearch.google.com/ping/RPC2     http://api.my.yahoo.com/RPC2     http://api.my.yahoo.com/rss/ping     http://ping.feedburner.com     http://www.zhuaxia.com/rpc/server.php     http://www.xianguo.com/xmlrpc/ping.php     http://www.feedsky.com/api/RPC2     http://blog.iask.com/RPC2     http://ping.blog.qikoo.com/rpc2.php     http://rpc.technorati.com/rpc/ping     http://www.blogsdominicanos.com/ping/]]></description>
			<content:encoded><![CDATA[<p>ping服务对博客来说是件非常重要的工具，它可以在你发表文章后迅速通知搜索引擎，feed托管服务商和在线RSS阅读器更新。这对博客来说是相当重要的。这是我收集的ping服务器，网上的很多都是没有百度的服务器，我个人认为对中国博客来说还是比较有用的。（小知识：对于 WordPress 用户，添加Ping 服务 RPC 端点很简单，只要在后台的撰写选项的更新服务中，把下面的那些添加进去就行了，当然也可以去掉几个，如果添加过多的话发布文章时会很慢。）</p>
<p><span id="more-1109"></span></p>
<p>http://ping.baidu.com/ping/RPC2</p>
<p>    http://rpc.pingomatic.com/</p>
<p>    http://blogsearch.google.com/ping/RPC2</p>
<p>    http://api.my.yahoo.com/RPC2</p>
<p>    http://api.my.yahoo.com/rss/ping</p>
<p>    http://ping.feedburner.com</p>
<p>    http://www.zhuaxia.com/rpc/server.php</p>
<p>    http://www.xianguo.com/xmlrpc/ping.php</p>
<p>    http://www.feedsky.com/api/RPC2</p>
<p>    http://blog.iask.com/RPC2</p>
<p>    http://ping.blog.qikoo.com/rpc2.php</p>
<p>    http://rpc.technorati.com/rpc/ping</p>
<p>    http://www.blogsdominicanos.com/ping/</p>
]]></content:encoded>
			<wfw:commentRss>http://free5.org/2010/06/28/add-a-ping-server-to-speed-up-wordpress-blog-search-engine-included/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>分享几个非常有用的wordpress插件</title>
		<link>http://free5.org/2010/05/15/fen-xiang-ji-ge-fei-chang-you-yong-di-wordpress-cha-jian/</link>
		<comments>http://free5.org/2010/05/15/fen-xiang-ji-ge-fei-chang-you-yong-di-wordpress-cha-jian/#comments</comments>
		<pubDate>Sat, 15 May 2010 13:38:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress经验]]></category>
		<category><![CDATA[WordPress插件]]></category>
		<category><![CDATA[Wordpress经验]]></category>
		<category><![CDATA[建站工具]]></category>
		<category><![CDATA[建站经验]]></category>

		<guid isPermaLink="false">http://free5.org/?p=1078</guid>
		<description><![CDATA[Akismet：wordpress自带的防spam插件，虽然有时有误伤，但基本没放进来过spam Google XML Sitemaps：自动帮你的wordpress生成google sitemap，很实用，自带中文版（只是我还没有找到如何设置才能支持一个wordpress程序多个域名时每一个域名各自存放sitemap文件的方法）http://www.arnebrachhold.de/redir/sitemap-home/ HeadSpace2：功能非常强大的seo插件，自定义功能比All in One SEO Pack强的多，（插件提供了强大的 Page Titles, Tags, keywords and Description 的 Meta 优化设置），但有些臃肿，好在你可以自定义使用哪些功能、关闭哪些功能。自带中文版。http://urbangiraffe.com/plugins/headspace2/ Permalink Redirect：301重定向插件，对于修改了永久链接的wp来说非常有用，可以将旧地址301到新地址。http://scott.yang.id.au/code/permalink-redirect/ Top Level Categories：wp的分类目录网址总有个Category，很不爽，用这个插件可以去掉 http://fortes.com/projects/wordpress/top-level-cats/ WordPress Database Backup（这个很有用，本站准备启用！） 自动数据库备份插件，可以随时备份你的wp数据库，或者自定义备份时间，它会将备份的数据库发送到你的邮箱，自带中文版 http://www.ilfilosofo.com/blog/wp-db-backup WP-PageNavi：著名的分页插件，不用介绍了吧。http://lesterchan.net/portfolio/programming/php/]]></description>
			<content:encoded><![CDATA[<p>Akismet：wordpress自带的防spam<strong>插件</strong>，虽然有时有误伤，但基本没放进来过spam<br />
Google XML Sitemaps：自动帮你的wordpress生成google sitemap，很实用，自带中文版（只是我还没有找到如何设置才能支持一个wordpress程序多个域名时每一个域名各自存放sitemap文件的方法）<a href="http://www.arnebrachhold.de/redir/sitemap-home/">http://www.arnebrachhold.de/redir/sitemap-home/</a><br />
HeadSpace2：功能非常强大的seo<strong>插件</strong>，自定义功能比All in One SEO Pack强的多，（插件提供了强大的 Page Titles, Tags, keywords and Description 的 Meta 优化设置），但有些臃肿，好在你可以自定义使用哪些功能、关闭哪些功能。自带中文<span id="more-1078"></span>版。<a href="http://urbangiraffe.com/plugins/headspace2/">http://urbangiraffe.com/plugins/headspace2/</a><br />
Permalink Redirect：301重定向<strong>插件</strong>，对于修改了永久链接的wp来说非常有用，可以将旧地址301到新地址。<a href="http://scott.yang.id.au/code/permalink-redirect/">http://scott.yang.id.au/code/permalink-redirect/</a><br />
Top Level Categories：wp的分类目录网址总有个Category，很不爽，用这个<strong>插件</strong>可以去掉<br />
<a href="http://fortes.com/projects/wordpress/top-level-cats/">http://fortes.com/projects/wordpress/top-level-cats/</a><br />
WordPress Database Backup（这个很有用，本站准备启用！）<br />
自动数据库备份<strong>插件</strong>，可以随时备份你的wp数据库，或者自定义备份时间，它会将备份的数据库发送到你的邮箱，自带中文版<br />
<a href="http://www.ilfilosofo.com/blog/wp-db-backup">http://www.ilfilosofo.com/blog/wp-db-backup</a><br />
WP-PageNavi：著名的分页<strong>插件</strong>，不用介绍了吧。<a href="http://lesterchan.net/portfolio/programming/php/">http://lesterchan.net/portfolio/programming/php/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://free5.org/2010/05/15/fen-xiang-ji-ge-fei-chang-you-yong-di-wordpress-cha-jian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>单用户版wordpress绑定多个域名的方法</title>
		<link>http://free5.org/2010/05/06/single-user-version-of-wordpress-binding-method-of-multiple-domain-names/</link>
		<comments>http://free5.org/2010/05/06/single-user-version-of-wordpress-binding-method-of-multiple-domain-names/#comments</comments>
		<pubDate>Thu, 06 May 2010 02:53:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress经验]]></category>
		<category><![CDATA[WordPress插件]]></category>
		<category><![CDATA[Wordpress经验]]></category>
		<category><![CDATA[建站经验]]></category>

		<guid isPermaLink="false">http://free5.org/?p=1058</guid>
		<description><![CDATA[有些人域名很多,但是只是搞了一个WP博客,所以就想给WP绑定多个域名,首页是没有问题的,关键是想连文章页面也是区分不同地址,刚好在群上看到这个一个信息,就顺手的转来给大家,需要的看下吧,我虽然这个博客目前也启用了3个域名,但下面介绍具体操作方法: 首先,需要注意的是,必须是Wordpress个人版,不能是WPMU版.其次是怎么绑定到多个域名上去呢?当然你需要对php有一点了解才行. 好了,废话少说,看操作方法. 第一种方法：首先,把wordpress所有文件上传到你的空间,然后把所有的域名指向到你的空间目录. 然后,打开wp-config.php,并进行如下编辑.为了简单一点,我提供几个例子,比如你有3个域名需要绑定,free5.org,freeg.pp.ru,xya.in,那么wp-config.php就会如下: // ** MySQL settings ** // define(&#8216;DB_NAME&#8217;, &#8216;dbname&#8217;); // The name of the database define(&#8216;DB_USER&#8217;, &#8216;user&#8217;); // Your MySQL username define(&#8216;DB_PASSWORD&#8217;, &#8216;password&#8217;); // &#8230;and password define(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;); // 99% chance you won&#8217;t need to change this value define(&#8216;DB_CHARSET&#8217;, &#8216;utf8&#8242;); define(&#8216;DB_COLLATE&#8217;, ”); // You can have multiple installations in one database [...]]]></description>
			<content:encoded><![CDATA[<p>有些人域名很多,但是只是搞了一个WP博客,所以就想给WP绑定多个域名,首页是没有问题的,关键是想连文章页面也是区分不同地址,刚好在群上看到这个一个信息,就顺手的转来给大家,需要的看下吧,我虽然这个博客目前也启用了3个域名,但下面介绍具体操作方法:</p>
<p>首先,需要注意的是,必须是Wordpress个人版,不能是WPMU版.其次是怎么绑定到多个域名上去呢?当然你需要对php有一点了解才行.</p>
<p>好了,废话少说,看操作方法.</p>
<p>第一种方法：首先,把wordpress所有文件上传到你的空间,然后把所有的域名指向到你的空间目录.</p>
<p>然后,打开wp-config.php,并进行如下编辑.为了简单一点,我提供几个例子,比如你有3个域名需要绑定,free5.org,freeg.pp.ru,xya.in,那么wp-config.php就会如下:</p>
<p><span id="more-1062"></span>// ** MySQL settings ** //<br />
define(&#8216;DB_NAME&#8217;, &#8216;dbname&#8217;); // The name of the database<br />
define(&#8216;DB_USER&#8217;, &#8216;user&#8217;); // Your MySQL username<br />
define(&#8216;DB_PASSWORD&#8217;, &#8216;password&#8217;); // &#8230;and password<br />
define(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;); // 99% chance you won&#8217;t need to change this value<br />
define(&#8216;DB_CHARSET&#8217;, &#8216;utf8&#8242;);<br />
define(&#8216;DB_COLLATE&#8217;, ”);<br />
// You can have multiple installations in one database if you give each a unique prefix<br />
$current_sitename= $_SERVER[’HTTP_HOST’];<br />
if (($current_sitename == “free5.org”) || ($current_sitename == “free5.org”)){<br />
$table_prefix = ‘free5_’; // Only numbers, letters, and underscores please!<br />
}elseif (($current_sitename == “freeg.pp.ru”) || ($current_sitename == “freeg.pp.ru”)){<br />
$table_prefix = ‘freeg_’; // Only numbers, letters, and underscores please!<br />
}elseif (($current_sitename == “xya.in”) || ($current_sitename == “xya.in”)){<br />
$table_prefix = ‘xya_’; // Only numbers, letters, and underscores please!<br />
}</p>
<p>ok！</p>
<p>第二种方法：另外，还有人提出了一种方法：编辑根目录下的 wp-config.php 文件，添加以下代码：</p>
<p>$home = &#8216;http://&#8217;.$_SERVER['HTTP_HOST'];<br />
$siteurl = &#8216;http://&#8217;.$_SERVER['HTTP_HOST'];<br />
define(&#8216;WP_HOME&#8217;, $home);<br />
define(&#8216;WP_SITEURL&#8217;, $siteurl);（PHP 中的 $_SERVER['HTTP_HOST'] 用于获得来路域名。这样，就能根据来路为 WP_HOME 和 WP_SITEURL 变量赋值，实现 WordPress 多域名绑定。）</p>
<p>为防止域名改变而造成图片不可用，必须在控制面板的“设置 (Options) – 杂项 (Misc)”里将“文件的完整 URL 地址”设为 “wp-content/uploads”（与“默认上传路径”参数相同）。</p>
<p>（不过这种方法需要安装！）</p>
<p>第三种方法：直接安装PS WP Multi Domain插件，在后台启用即可！(我的另外一个博客&lt;<a href="http://freegip.webatu.com/">http://freegip.webatu.com/</a>；<a href="http://freeg.pp.ru">http://freeg.pp.ru</a>&gt;即是使用此方法绑定！)</p>
]]></content:encoded>
			<wfw:commentRss>http://free5.org/2010/05/06/single-user-version-of-wordpress-binding-method-of-multiple-domain-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用.htaccess实现域名指向子目录功能</title>
		<link>http://free5.org/2010/02/10/use-htaccess-domain-pointing-to-a-subdirectory-to-achieve-functional/</link>
		<comments>http://free5.org/2010/02/10/use-htaccess-domain-pointing-to-a-subdirectory-to-achieve-functional/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 04:53:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress经验]]></category>
		<category><![CDATA[建站经验]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[domain parking]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[rewriterule]]></category>
		<category><![CDATA[WordPress插件]]></category>
		<category><![CDATA[Wordpress经验]]></category>
		<category><![CDATA[域名停靠]]></category>
		<category><![CDATA[建站工具]]></category>
		<category><![CDATA[环境搭建]]></category>

		<guid isPermaLink="false">http://free5.org/?p=1030</guid>
		<description><![CDATA[我购买的webhostingpad空间虽然支持Parked Domains（域名停靠）功能，但停靠的域名只能指向网站根目录即主域名（如我的http://roadh.net），如果想将域名（如http://xyc.pp.ru)停靠到我在此空间上建立的子网站（通过Addon Domains功能建立）（如http://xya.in）上，单靠cpanel控制面板提供的功能是无法实现的，好在该空间支持.htaccess文件重写功能，现就将实现方法介绍如下： 1、首先在xyc.pp.ru的dns中将其cname到xya.in上； 2、编辑网站根目录下.htaccess文件，添加如下内容： RewriteEngine on #让xyc.pp.ru 访问xya.in目录xya.in网站 RewriteCond %{HTTP_HOST} ^xyc.pp.ru$ RewriteCond %{REQUEST_URI} !^/xya.in/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /xya.in/$1 RewriteCond %{HTTP_HOST} ^xyc.pp.ru$ RewriteRule ^(/)?$ xya.in/index.php [L] 保存即可将xyc.pp.ru指向xya.in子网站（xya.in子网站的子目录名为：xya.in）。 由于我的xya.in网站为wordpress博客，若仅进行如上设置还不能很好的支持多域名访问该网站，此时需要在WordPress后台增加PS WP Multi Domain插件并启用即可正常使用xya.in和xyc.pp.ru同时访问该网站！]]></description>
			<content:encoded><![CDATA[<p>我购买的webhostingpad空间虽然支持Parked Domains（域名停靠）功能，但停靠的域名只能指向网站根目录即主域名（如我的<a href="http://roadh.net" target="_blank">http://roadh.net</a>），如果想将域名（如<a href="http://xyc.pp.ru">http://xyc.pp.ru</a>)停靠到我在此空间上建立的子网站（通过Addon Domains功能建立）（如<a href="http://xya.in">http://xya.in</a>）上，单靠cpanel控制面板提供的功能是无法实现的，好在该空间支持.htaccess文件重写功能，现就将实现方法介绍如下：</p>
<p>1、首先在xyc.pp.ru的dns中将其cname到xya.in上；</p>
<p>2、编辑网站根目录下.htaccess文件，添加如下内容：</p>
<p><span id="more-1030"></span>RewriteEngine on</p>
<p>#让xyc.pp.ru 访问xya.in目录xya.in网站</p>
<p>RewriteCond %{HTTP_HOST} ^xyc.pp.ru$<br />
RewriteCond %{REQUEST_URI} !^/xya.in/<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^(.*)$ /xya.in/$1<br />
RewriteCond %{HTTP_HOST} ^xyc.pp.ru$<br />
RewriteRule ^(/)?$ xya.in/index.php [L]</p>
<p>保存即可将xyc.pp.ru指向xya.in子网站（xya.in子网站的子目录名为：xya.in）。</p>
<p>由于我的xya.in网站为wordpress博客，若仅进行如上设置还不能很好的支持多域名访问该网站，此时需要在WordPress后台增加PS WP Multi Domain插件并启用即可正常使用xya.in和xyc.pp.ru同时访问该网站！</p>
]]></content:encoded>
			<wfw:commentRss>http://free5.org/2010/02/10/use-htaccess-domain-pointing-to-a-subdirectory-to-achieve-functional/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>将wordpress博客迁到新的地址或修改域名的方法</title>
		<link>http://free5.org/2009/11/16/wordpress-blog-will-move-to-the-new-address-or-modify-the-method-of-domain-names/</link>
		<comments>http://free5.org/2009/11/16/wordpress-blog-will-move-to-the-new-address-or-modify-the-method-of-domain-names/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 06:19:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress经验]]></category>
		<category><![CDATA[建站经验]]></category>
		<category><![CDATA[Wordpress经验]]></category>
		<category><![CDATA[建站工具]]></category>
		<category><![CDATA[操作技巧]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://free5.org/?p=1001</guid>
		<description><![CDATA[果你改变了网站的域名或者迁到了新的地址，你就需要使用 phpmyadmin 来修改数据库，主要是 siteurl 和 home 这两项。 1 . 登录你的网站主机的控制面板，进入 MySQL 数据库的 admin 页面。 2 . 打开 phpmyadmin 。 3 . 在左边的下拉列表栏里选择正确数据库，然后选择 options 。 4 . 点击 Browse 按钮。 5 . 在 option_value 栏里找到你原来服务器 siteurl 那一行（一般都是在第一行）。 6 . 点击上面标着铅笔的那个按钮，把你原来服务器的 siteurl 修改成新的 url 。 7 . 点击屏幕底部的 go 按钮，保存修改。 8 . 保存后你应该重新回到了 Browse 界面，（如果没有，请重复上面的步骤进入 Browse 界面）我们还要再做一些修改。 [...]]]></description>
			<content:encoded><![CDATA[<p>果你改变了网站的域名或者迁到了新的地址，你就需要使用 phpmyadmin 来修改数据库，主要是 <strong>siteurl</strong> 和 <strong>home</strong> 这两项。</p>
<p><strong>1 . </strong>登录你的网站主机的控制面板，进入 MySQL 数据库的 admin 页面。</p>
<p><strong>2 . </strong>打开 <strong>phpmyadmin</strong> 。</p>
<p><strong>3 . </strong>在左边的下拉列表栏里选择正确数据库，然后选择 <strong>options</strong> 。</p>
<p><a id="more-857"></a><a href="http://free5.org/wp-content/uploads/2009/11/wp01.gif"><span id="more-1001"></span><img class="alignnone size-full wp-image-1002" src="http://free5.org/wp-content/uploads/2009/11/wp01.gif" alt="wp01" width="337" height="359" /></a><br />
<a title="3.gif" href="http://zsk.akaka.com.cn/wp-content/uploads/2007/05/3.gif"></a></p>
<p><strong>4 . </strong>点击 <strong>Browse</strong> 按钮。</p>
<p><a href="http://free5.org/wp-content/uploads/2009/11/wp02.gif"><img class="alignnone size-full wp-image-1003" src="http://free5.org/wp-content/uploads/2009/11/wp02.gif" alt="wp02" width="450" height="206" /></a></p>
<p><a title="4.gif" href="http://zsk.akaka.com.cn/wp-content/uploads/2007/05/4.gif"></a></p>
<p><strong>5 . </strong>在 <strong>option_value</strong> 栏里找到你原来服务器 <strong>siteurl</strong> 那一行（一般都是在第一行）。</p>
<p><a title="5.gif" href="http://zsk.akaka.com.cn/wp-content/uploads/2007/05/5.gif"></a></p>
<p><strong><a href="http://free5.org/wp-content/uploads/2009/11/wp03.gif"><img class="alignnone size-full wp-image-1004" src="http://free5.org/wp-content/uploads/2009/11/wp03.gif" alt="wp03" width="450" height="152" /></a></strong></p>
<p><strong>6 . </strong>点击上面标着铅笔的那个按钮，把你原来服务器的 <strong>siteurl</strong> 修改成新的 url 。</p>
<p><strong>7 . </strong>点击屏幕底部的 <strong>go</strong> 按钮，保存修改。</p>
<p><strong>8 . </strong>保存后你应该重新回到了 <strong>Browse</strong> 界面，（如果没有，请重复上面的步骤进入 <strong>Browse</strong> 界面）我们还要再做一些修改。</p>
<p><strong>9 . </strong>在 <strong>Browse</strong> 界面的底部有一个向下翻页的按钮，点击它翻页，寻找 <strong>home</strong> 这一项。</p>
<p><a title="9.gif" href="http://zsk.akaka.com.cn/wp-content/uploads/2007/05/9.gif"></a></p>
<p><a href="http://free5.org/wp-content/uploads/2009/11/wp04.gif"><img class="alignnone size-full wp-image-1005" src="http://free5.org/wp-content/uploads/2009/11/wp04.gif" alt="wp04" width="450" height="337" /></a></p>
<p>与步骤 6 相同的修改 <strong>home</strong> 项。</p>
<p><strong>10 . </strong>点击屏幕底部的 <strong>go</strong> 按钮，保存修改。</p>
<p>嘿嘿，搞定！</p>
]]></content:encoded>
			<wfw:commentRss>http://free5.org/2009/11/16/wordpress-blog-will-move-to-the-new-address-or-modify-the-method-of-domain-names/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>用.htaccess 文件帮你逃离Feedsky的不稳定</title>
		<link>http://free5.org/2009/05/18/used-htaccess-file-to-help-you-escape-from-the-instability-feedsky/</link>
		<comments>http://free5.org/2009/05/18/used-htaccess-file-to-help-you-escape-from-the-instability-feedsky/#comments</comments>
		<pubDate>Mon, 18 May 2009 12:58:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress经验]]></category>
		<category><![CDATA[建站经验]]></category>
		<category><![CDATA[Wordpress经验]]></category>

		<guid isPermaLink="false">http://free5.org/?p=750</guid>
		<description><![CDATA[托管 Feed 有很多好处，但这些好处都要基于一个前提 —— Feed 托管商足够强健。自从使用 Feedsky 以来我不但没有体验到好处，积攒的怨念倒是3天3夜都散不完。我谁也不赖。要怪就怪自己当时贪图小利，明知道 Feedsky 不好，冲着话题广告还是头也不回地上了船。要说在 Feed 这个问题上我还有一点明智的话，那应该是绑定了二级域名。 如果你和我一样，极度不满 Feedsky 的服务品质，但还留了一手（绑定域名），以下会提供你两个基于 .htaccess 平滑转移 Feed 的方案。但要是你奋不顾身破釜沉舟直接用了 Feedsky 的 Feed 链接，对不起，我也不知道该怎么办。 1. 自行托管。 cpanel 下域名可以指向单个文件，做过绑定域名操作的都该知道怎么用。像我就直接把 feed.ishawn.net 绑到wp-rss2.php 上，瞬间实现 Feedsky-&#62;本地 的平滑过渡。切换以后 Google Reader 几乎是实时更新，以前 Feedsky 对 Google Reader 的一小时延时问题再也没有了。 空间面板刚好不是 Cpanel 或者不支持单文件域名指向，也没有问题。首先绑定二级域名到根目录，即与主域名同级的目录。然后在 .htaccess 内添加以下内容(放在最后)： RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?feed.free5.org$ RewriteCond %{REQUEST_URI} !^/wp-rss2.php RewriteRule ^ [...]]]></description>
			<content:encoded><![CDATA[<p>托管 Feed 有很多好处，但这些好处都要基于一个前提 —— Feed 托管商足够强健。自从使用 Feedsky 以来我不但没有体验到好处，积攒的怨念倒是3天3夜都散不完。我谁也不赖。要怪就怪自己当时贪图小利，明知道 Feedsky 不好，冲着话题广告还是头也不回地上了船。要说在 Feed 这个问题上我还有一点明智的话，那应该是绑定了二级域名。</p>
<p><span id="more-750"></span>如果你和我一样，极度不满 Feedsky 的服务品质，但还留了一手（绑定域名），以下会提供你两个基于 .htaccess 平滑转移 Feed 的方案。但要是你奋不顾身破釜沉舟直接用了 Feedsky 的 Feed 链接，对不起，我也不知道该怎么办。</p>
<p>1. 自行托管。</p>
<p>cpanel 下域名可以指向单个文件，做过绑定域名操作的都该知道怎么用。像我就直接把 feed.ishawn.net 绑到wp-rss2.php 上，瞬间实现 Feedsky-&gt;本地 的平滑过渡。切换以后 Google Reader 几乎是实时更新，以前 Feedsky 对 Google Reader 的一小时延时问题再也没有了。</p>
<p>空间面板刚好不是 Cpanel 或者不支持单文件域名指向，也没有问题。首先绑定二级域名到根目录，即与主域名同级的目录。然后在 .htaccess 内添加以下内容(放在最后)：</p>
<blockquote><p>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} ^(<a href="http://www.)?feed.free5.org$">www.)?feed.free5.org$</a><br />
RewriteCond %{REQUEST_URI} !^/wp-rss2.php<br />
RewriteRule ^ /wp-rss2.php</p></blockquote>
<p>记得替换为你的域名，效果和 cpanel 单文件绑定完全一样。</p>
<p>2. 设置域名跳转。</p>
<p>同样是操作 .htaccess，不过理念不同，其主要目的是让 Feed 域名转向相应的托管商 URL。简单的说，此法可以随意控制 feed.ishawn.net 跳转到 feed.feedsky.com/ishawn 或者 feedproxy.google.com/shawn。</p>
<p>具体实现方法请参考 <a href="http://www.maoxmao.com/in-feedsky-and-seamless-handover-in-feedburner/">在FeedSky和FeedBurner中无缝切换</a>，我就不做重复工作了。</p>
<p>最后总结一下两种方法各自的缺点：</p>
<p>Plan A 不适合订阅量较大空间却不够强健的 Blog。考虑到一般 Blog 没有动辄上万的订阅量，所以该方案仍然适合绝大部份人。</p>
<p>Plan B 是向外部 URL 跳转，所以地址栏会暴露(暴露又怎么了？我比较BT，经常订阅最直接的那个Feed..XD)，还有就是很多搜索引擎对此类 Feed 不太喜欢，比如 Google Blogsearch 和有道的博客搜索。</p>
<p>但我相信以上两种方案足以适合每一个和我一样需要放弃 Feedsky 又不希望劳烦(其实是怕失去)读者的 Blogger。你还要继续忍受 Feedsky 么？我看算了吧。</p>
]]></content:encoded>
			<wfw:commentRss>http://free5.org/2009/05/18/used-htaccess-file-to-help-you-escape-from-the-instability-feedsky/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>实战讲解.htaccess文件之rewrite规则</title>
		<link>http://free5.org/2009/05/18/combat-on-htaccess-file-rewrite-the-rules-of/</link>
		<comments>http://free5.org/2009/05/18/combat-on-htaccess-file-rewrite-the-rules-of/#comments</comments>
		<pubDate>Mon, 18 May 2009 12:26:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[建站经验]]></category>
		<category><![CDATA[Wordpress经验]]></category>

		<guid isPermaLink="false">http://free5.org/?p=743</guid>
		<description><![CDATA[.htaccess文件大家都不陌生吧。不认识的自己去搜一下……顺便告诉你，这是个好东西，值得一学。 似乎网上关于.htaccess编写方法的教程很有限，相信博主们也没有几个是自己写的吧？ 我在这里就搜了几个常用规则，总结一下rewrite规则的用法。当然这只是.htaccess功能的一小部分，但是相当实用。 如果熟练掌握rewrite规则的编写，能够加强对网站URL的控制，对用户体验、SEO都十分有利。   注：所有规则来源于网络，我只作解释。   一、防盗链功能 1 2 3 4 RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+.)?mysite.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*.(jpe?g&#124;gif&#124;bmp&#124;png)$ /images/nohotlink.jpg [L] 逐行讲解一下：   1.打开Rewrite功能。有可能服务器设置里已经是全局下打开了，但是多写也没事。 2.RewriteCond指令，定义生效条件，用于寻找匹配条件的地址。后面内容用正则表达式匹配。代表含义是发送的请求不由mysite.com而来，那就是盗链啦。末尾的[NC]代表忽略大小写。 3.发送请求的主机前缀不为空。 4.RewriteRule指令，定义重写规则，把匹配的地址按此规则重写。本例中把这些后缀为这些图片格式的，都替换到某一个图片下。[L]表示这是最后一段规则。 只这四行就实现了防盗链是不是很神奇（- -&#124;&#124;），编写起来是不是又觉得复杂。 这里总结了几个常用参数（不是全部）： RewriteCond下： [NC]  不分字母大小写 [OR]  用于连接下一条规则 RewriteRule下： [R] 强制重定向，[R=code] code默认为302 [F] 禁用URL，返回HTTP 403 错误 [L] 这是最后一条规则，之后内容无用 还有一篇关于正则表达式的教程（很详细）：http://www.unibetter.com/deerchao/zhengzhe-biaodashi-jiaocheng-se.htm    二、网址规范化 1 2 3 4 [...]]]></description>
			<content:encoded><![CDATA[<p>.htaccess文件大家都不陌生吧。不认识的自己去搜一下……顺便告诉你，这是个好东西，值得一学。</p>
<p>似乎网上关于.htaccess编写方法的教程很有限，相信博主们也没有几个是自己写的吧？<br />
我在这里就搜了几个常用规则，总结一下rewrite规则的用法。当然这只是.htaccess功能的一小部分，但是相当实用。<br />
如果熟练掌握rewrite规则的编写，能够加强对网站URL的控制，对用户体验、SEO都十分有利。<span id="more-743"></span><br />
 </p>
<p><em>注：所有规则来源于网络，我只作解释。</em></p>
<p> </p>
<p><strong><span><span><span style="font-size: large"><span style="font-size: medium">一、防盗链功能</span></span></span></span></strong></p>
<div class="wp_syntax" style="padding-bottom: 0px">
<table border="0">
<tbody>
<tr class=" ">
<td class="line_numbers">
<pre>1
2
3
4</pre>
</td>
<td class="code">
<pre style="font-family: monospace">RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+.)?mysite.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>逐行讲解一下：<br />
 </p>
<p style="margin-left: 40px"><em><strong>1.</strong></em>打开Rewrite功能。有可能服务器设置里已经是全局下打开了，但是多写也没事。<br />
<em><strong>2.</strong></em><span style="color: #ff0000">RewriteCond</span>指令，<span style="text-decoration: underline">定义生效条件</span>，用于寻找匹配条件的地址。后面内容用正则表达式匹配。代表含义是发送的请求不由mysite.com而来，那就是盗链啦。末尾的<span style="color: #0000ff">[NC]</span>代表忽略大小写。<br />
<em><strong>3.</strong></em>发送请求的主机前缀不为空。<br />
<em><strong>4.</strong></em><span style="color: #ff0000">RewriteRule</span>指令，<span style="text-decoration: underline">定义重写规则</span>，把匹配的地址按此规则重写。本例中把这些后缀为这些图片格式的，都替换到某一个图片下。<span style="color: #0000ff">[L]</span>表示这是最后一段规则。</p>
<p>只这四行就实现了防盗链是不是很神奇（- -||），编写起来是不是又觉得复杂。<br />
这里总结了几个常用参数（不是全部）：</p>
<p style="margin-left: 40px"><span style="color: #0000ff"><span style="color: #ff0000">RewriteCond</span></span><span><span>下：</span></span><span style="color: #0000ff"><br />
[NC]</span>  不分字母大小写<br />
<span style="color: #0000ff">[OR]  </span>用于连接下一条规则<br />
<span style="color: #0000ff"><span style="color: #0000ff"><span style="color: #ff0000"><br />
RewriteRule</span></span><span><span><span style="color: #000000">下：<br />
<span style="color: #0000ff">[R]</span> 强制重定向，<span style="color: #0000ff">[R=code]</span></span></span></span></span><span><span style="color: #000000"><span> code</span></span></span><span style="color: #0000ff"><span><span><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000">默认为302</span></span><br />
<span style="color: #0000ff">[F]</span> 禁用URL，返回HTTP 403 错误<br />
<span style="color: #0000ff">[L]</span> 这是最后一条规则，之后内容无用</span></span></span></span></p>
<p><span style="color: #0000ff"><span><span><span style="color: #000000">还有一篇关于正则表达式的教程（很详细）：<a href="http://www.unibetter.com/deerchao/zhengzhe-biaodashi-jiaocheng-se.htm">http://www.unibetter.com/deerchao/zhengzhe-biaodashi-jiaocheng-se.htm</a></span></span></span></span></p>
<p>  </p>
<p><span style="color: #0000ff"><span><span><span style="font-size: medium;color: #000000"><span><span><span style="font-size: large"><strong>二、网址规范化</strong></span></span></span></span></span></span></span></p>
<div class="wp_syntax" style="padding-bottom: 0px">
<table border="0">
<tbody>
<tr>
<td class="line_numbers">
<pre>1
2
3
4</pre>
</td>
<td class="code">
<pre style="font-family: monospace">Options +FollowSymLinks
rewriteEngine on
rewriteCond %{http_host} ^yourdomain.com [NC]
rewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>这个是把所有二级域名都重定向到www.yourdomain.com的例子，现在看来是不是很简单了？<br />
需要注意的是，这里的Options +FollowSymLinks不是必须的，但在某些服务器如果不设置FollowSymLinks，可能引起500错误。</p>
<p>再来看一个好玩的重定向</p>
<div class="wp_syntax" style="padding-bottom: 0px">
<table border="0">
<tbody>
<tr>
<td class="line_numbers">
<pre>1
2
3
4</pre>
</td>
<td class="code">
<pre style="font-family: monospace">RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} (Googlebot)
RewriteRule ^ http://abc.com/ [R=301,L]</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p style="margin-left: 40px"><em><strong>1.</strong></em>打开Rewrite功能。<br />
<em><strong>2.</strong></em><span style="color: #ff0000">RewriteBase</span>指令，<span style="text-decoration: underline">设置目录级重写的基准URL</span>。可以理解成把该目录（这个.htaccess所在目录）假定为基准的URL前缀。本例中这样的写法无用。<br />
<strong><em>3.</em></strong><span style="color: #ff0000">RewriteCond</span>指令。匹配所有USER_AGENT为Googlebot的发送请求。<br />
<em><strong>4.</strong></em><span style="color: #ff0000">RewriteRule</span>指令。本例中把这些请求都重定向到了abc.com。</p>
<p>在本例中，这个配置应该是黑客所为，把google蜘蛛指向某个网站，等于伪造PR。</p>
<p> </p>
<p> </p>
<p><span style="color: #0000ff"><span><span><span style="font-size: medium;color: #000000"><span><span><span style="font-size: large"><strong>三、临时错误页面</strong></span></span></span></span></span></span></span></p>
<p>当你的网站在升级、修改的时候，你最好让访客转到指定的页面，而不是没做完的页面或者是错误页。<br />
这时我们做一个302转跳就好。</p>
<div class="wp_syntax" style="padding-bottom: 0px">
<table border="0">
<tbody>
<tr class="  ">
<td class="line_numbers">
<pre>1
2
3
4</pre>
</td>
<td class="code">
<pre style="font-family: monospace">RewriteEngine on
RewriteCond %{REQUEST_URI} !/maintenance.html$
RewriteCond %{REMOTE_ADDR} !^123.123.123.123
RewriteRule $ /error.html [R=302,L]</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p style="margin-left: 40px"><strong><em>1.</em></strong>继续打开Rewrite功能。- -|<br />
<em><strong>2.</strong></em><span style="color: #339966"><span><span>REQUEST_URI</span></span></span>，<span style="text-decoration: underline">请求的URL值</span>。这里指所有访问maintenance.html页面的请求。<br />
<strong><em>3.</em></strong><span style="color: #339966"><span>REMOTE_ADDR</span></span>，<span style="text-decoration: underline">向服务器发送请求的IP地址</span>。本例中此处应设为你自己的IP，这样就只有你能访问。<br />
<em><strong>4.</strong></em><span style="color: #ff0000">RewriteRule</span>指令。本例中把这些请求都重定向到了error.html 。</p>
<p>在本例，我们总结几个常用的正则表达式和特殊符号。</p>
<p><span style="color: #ff00ff">(.*) </span><span>用于匹配某一区域内所有内容。如 abc/def/ghi 可用 <span style="color: #ff00ff">(.*)/<span style="color: #ff00ff">(.*)/<span style="color: #ff00ff">(.*) </span></span></span>匹配。<br />
</span><span style="color: #ff00ff">([a-zA-Z_]+) </span><span>匹配英文单词，允许用-和_连接。<br />
</span><span style="color: #ff00ff"><span>([0-9]+) </span></span><span>匹配多位数字，通常用于匹配ID。<br />
<span style="color: #ff00ff">([0-9])</span> 只匹配一位的数字。</span></p>
<p><span style="color: #ff00ff">^</span><span> 表示正则的开始</span><br />
<span style="color: #ff00ff">$</span><span> 表示正则的结束 </span></p>
<p> </p>
<p> </p>
<p><span><span style="color: #0000ff"><span><span><span style="font-size: medium;color: #000000"><span><span><span style="font-size: large"><strong>四、重定向WordPress的RSS Feed链接地址到Feedburner地址</strong></span></span></span></span></span></span></span></span></p>
<p>除了可以更改模板里的RSS地址外，.htaccess也能实现RSS地址的更改，并更加方便。</p>
<div class="wp_syntax" style="padding-bottom: 15px">
<table border="0">
<tbody>
<tr class="  ">
<td class="line_numbers">
<pre>1
2
3
4</pre>
</td>
<td class="code">
<pre style="font-family: monospace">RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !FeedBurner    [NC]
RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds2.feedburner.com/yourname [R=302,NC,L]</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>有了上面的总结，本例其实就很简单了吧。<br />
唯一要注意的是这样操作要确保填写正确的HTTP_USER_AGENT。其实你不常换模板的话。。可能还是直接改模板更省事。</p>
<p> </p>
<p>在最后，为懒虫们推荐几个好东东：<br />
<strong>在线.htaccess生成器</strong>：<a href="http://www.htaccesseditor.com/sc.shtml">htaccessEditor</a><br />
<strong>在线正则表达式检查器</strong>：<a href="http://www.sman.cn/Blog/attachments/month_0711/320071117123354.html">http://www.sman.cn/Blog/attachments/month_0711/320071117123354.html</a><br />
<strong>mod_rewrite模块中文参考手册</strong>：<a href="http://man.chinaunix.net/newsoft/Apache2.2_chinese_manual/mod/mod_rewrite.html">http://man.chinaunix.net/newsoft/Apache2.2_chinese_manual/mod/mod_rewrite.html</a></p>
<p> </p>
<p>其实rewrite也只是APACHE一个模块而已，做到边查边写足矣，实在不行直接去搜一个规则也未尝不可。没有必要费太大力气去学。不过其中的正则表达式还是非常实用的，值得深入学习。</p>
]]></content:encoded>
			<wfw:commentRss>http://free5.org/2009/05/18/combat-on-htaccess-file-rewrite-the-rules-of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wp-hive插件，让您的一个WordPress变成多个博客（多域名分别显示）</title>
		<link>http://free5.org/2009/03/12/wp-hive-e6-8f-92-e4-bb-b6-ef-bc-8c-e8-ae-a9-e6-82-a8-e7-9a-84-e4-b8-80-e4-b8-aawordpress-e5-8f-98-e6-88-90-e5-a4-9a-e4-b8-aa-e5-8d-9a-e5-ae-a2-ef-bc-88-e5-a4-9a-e5-9f-9f-e5-90-8d-e5-88-86-e5-88-ab/</link>
		<comments>http://free5.org/2009/03/12/wp-hive-e6-8f-92-e4-bb-b6-ef-bc-8c-e8-ae-a9-e6-82-a8-e7-9a-84-e4-b8-80-e4-b8-aawordpress-e5-8f-98-e6-88-90-e5-a4-9a-e4-b8-aa-e5-8d-9a-e5-ae-a2-ef-bc-88-e5-a4-9a-e5-9f-9f-e5-90-8d-e5-88-86-e5-88-ab/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 03:30:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress经验]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Wordpress经验]]></category>

		<guid isPermaLink="false">http://free5.org/?p=345</guid>
		<description><![CDATA[标题的意思是：用一套WordPress源程序来驱动多个域名的WordPress博客。（ Multiple WordPress Blogs with a Single Installation） 工具：wp-hive插件 好处：1.不用每次WordPress升级时都多个博客分开升级，费时。 2.节省空间，一套wp解压后也要4兆多呢，再加上插件，主题等。 3.充分利用一个数据库。 4.没想好。用这个插件的朋友给我们说说吧。 ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝使用方法＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ 友情提示：这类插件使用之前，请备份你的数据库！ 请你遵照如下步骤进行，【千万】别颠倒了！     1.按照正常程序安装你的主博客（第一个博客）。 2.将wp-hive文件夹上传到/wp-content/plugins/目录。 3.将/wp-hive/db.php移动到/wp-content/目录。（不用激活插件之类的。） 4.马上打开你的主博客，wp-hive会自动配置数据库，添加wphive_config和wphive_hosts两个表。（记住一定是用你的主域名打开） 5.将第二个博客的域名绑定到第一个博客的目录。（可以是子域名，也可以是顶级域名）（其实这步你可以之前做好） 6.访问第二个域名，安装。（wp-hive自动会识别出这个是第二个博客的。） 7.在第二个博客的后台激活wp-hive插件。 重复5，6，7步，你就可以安装多个博客了。 ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝注意事项＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ 1.我说第五步可以先进行，但是千万别在第三和第四步之间就访问你的第二博客域名，那么wp-hive会将其记录为主域名了。 2.如果真的发生以上的情况，请删除数据库中的wphive_config和wphive_hosts表。 ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝特殊文件＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ 对于’sitemap.xml’, ‘robots.txt’, and ‘favicon.ico’这些文件，wp-hive会另外处理。 你要做的是： 1.别让这些文件出现在根目录里。 2.将每个域名所要使用的文件放在 /wp-content/wp-hive/domainname.com/  下即可。 ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝卸载＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ 不是要删除你的博客，请不要卸载哦。 1.禁用子博客里的wp-hive 2.删除数据库中的wphive_config和wphive_hosts表。（彻底卸载了。） ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝官方文档＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ 1.http://wp-hive.com/documentation/ 2.WordPress.org下载地址：http://wordpress.org/extend/plugins/wp-hive/]]></description>
			<content:encoded><![CDATA[<p>标题的意思是：用一套WordPress源程序来驱动多个域名的WordPress博客。（ Multiple WordPress Blogs with a Single Installation）</p>
<p>工具：<a href="http://wp-hive.com/" target="_blank">wp-hive</a>插件</p>
<p>好处：1.不用每次WordPress升级时都多个博客分开升级，费时。</p>
<p>2.节省空间，一套wp解压后也要4兆多呢，再加上插件，主题等。</p>
<p>3.充分利用一个数据库。</p>
<p>4.没想好。用这个插件的朋友给我们说说吧。</p>
<p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝<span style="font-size: medium;color: #800000"><strong>使用方法</strong></span>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>
<p>友情提示：这类插件使用之前，请备份你的数据库！</p>
<p><span style="color: #ff0000">请你遵照如下步骤进行，【千万】别颠倒了！</span></p>
<p> </p>
<p> </p>
<p>1.按照正常程序安装你的主博客（第一个博客）。</p>
<p>2.将wp-hive文件夹上传到/wp-content/plugins/目录。</p>
<p>3.将/wp-hive/db.php移动到/wp-content/目录。（<span style="color: #000080">不用激活插件之类的。）</span></p>
<p>4.马上打开你的主博客，wp-hive会自动配置数据库，添加wphive_config和wphive_hosts两个表<span style="color: #000080">。（记住一定是用你的主域名打开）</span></p>
<p>5.将第二个博客的域名绑定到第一个博客的目录。<span style="color: #000080">（可以是子域名，也可以是顶级域名）（其实这步你可以之前做好）</span></p>
<p>6.访问第二个域名，安装。（wp-hive自动会识别出这个是第二个博客的。）</p>
<p>7.在第二个博客的后台激活wp-hive插件。</p>
<p>重复5，6，7步，你就可以安装多个博客了。</p>
<p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝<strong><span style="font-size: medium;color: #800000">注意事项</span></strong>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>
<p>1.我说第五步可以先进行，但是千万别在第三和第四步之间就访问你的第二博客域名，那么wp-hive会将其记录为主域名了。</p>
<p>2.如果真的发生以上的情况，请删除数据库中的wphive_config和wphive_hosts表。</p>
<p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝<strong><span style="font-size: medium;color: #800000">特殊文件</span></strong>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>
<p>对于’sitemap.xml’, ‘robots.txt’, and ‘favicon.ico’这些文件，wp-hive会另外处理。</p>
<p>你要做的是：</p>
<p>1.别让这些文件出现在根目录里。</p>
<p>2.将每个域名所要使用的文件放在 <code>/wp-content/wp-hive/domainname.com/</code>  下即可。</p>
<p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝<strong><span style="font-size: medium;color: #800000">卸载</span></strong>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>
<p>不是要删除你的博客，请不要卸载哦。</p>
<p>1.禁用子博客里的wp-hive</p>
<p>2.删除数据库中的wphive_config和wphive_hosts表。（彻底卸载了。）</p>
<p>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝<strong><span style="font-size: medium;color: #800000">官方文档</span></strong>＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝</p>
<p>1.<a title="http://wp-hive.com/documentation/" href="http://wp-hive.com/documentation/">http://wp-hive.com/documentation/</a></p>
<p>2.WordPress.org下载地址：<a title="http://wordpress.org/extend/plugins/wp-hive/" href="http://wordpress.org/extend/plugins/wp-hive/">http://wordpress.org/extend/plugins/wp-hive/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://free5.org/2009/03/12/wp-hive-e6-8f-92-e4-bb-b6-ef-bc-8c-e8-ae-a9-e6-82-a8-e7-9a-84-e4-b8-80-e4-b8-aawordpress-e5-8f-98-e6-88-90-e5-a4-9a-e4-b8-aa-e5-8d-9a-e5-ae-a2-ef-bc-88-e5-a4-9a-e5-9f-9f-e5-90-8d-e5-88-86-e5-88-ab/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>巧妙使用Domain Mirror Plugin插件让您的WordPress博客支持多域名访问</title>
		<link>http://free5.org/2009/03/11/e5-b7-a7-e5-a6-99-e4-bd-bf-e7-94-a8domain-mirror-plugin-e6-8f-92-e4-bb-b6-e8-ae-a9-e6-82-a8-e7-9a-84wordpress-e5-8d-9a-e5-ae-a2-e6-94-af-e6-8c-81-e5-a4-9a-e5-9f-9f-e5-90-8d-e8-ae-bf-e9-97-ae/</link>
		<comments>http://free5.org/2009/03/11/e5-b7-a7-e5-a6-99-e4-bd-bf-e7-94-a8domain-mirror-plugin-e6-8f-92-e4-bb-b6-e8-ae-a9-e6-82-a8-e7-9a-84wordpress-e5-8d-9a-e5-ae-a2-e6-94-af-e6-8c-81-e5-a4-9a-e5-9f-9f-e5-90-8d-e8-ae-bf-e9-97-ae/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 04:04:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress经验]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[Wordpress经验]]></category>
		<category><![CDATA[域名停靠]]></category>

		<guid isPermaLink="false">http://free5.org/?p=342</guid>
		<description><![CDATA[您是不是想让多个域名同时指向一个博客？每个域名的标题还各不相同？并且所有的文章均以各自的域名的地址存在而非其他插件的自动指向主域名？ 现在就让Domain Mirror来帮您实现这一梦想吧。 下面是其作者页面的详细说明（英文的！我将在近期以最简单的方式来加以说明！） （简单地说就是已经支持2.7版了，首先是下载插件安装，启用，然后在设置菜单中找到Domain Mirror项，按提示依次输入您想停靠的域名，标题、小标题、博客显示url（填两次），最后，最重要的也就是你必须将这些域名停靠在购买空间的主域名上－－在DreamHost空间是通过mirror项来解决！）－－祝您好运！ WordPress 2.7: Works. WordPress 2.6.2: Works. WordPress 2.6.1: Works. WordPress 2.5: DomainMirror seems to work with no changes on this version, as long as the 2.3 patch is in place. Download: Domain Mirror v1.1 Download: Domain Mirror v1.2beta Download: WP-DomainMirror WordPress 2.3 fix If you have more than one [...]]]></description>
			<content:encoded><![CDATA[<p>您是不是想让多个域名同时指向一个博客？每个域名的标题还各不相同？并且所有的文章均以各自的域名的地址存在而非其他插件的自动指向主域名？</p>
<p>现在就让Domain Mirror来帮您实现这一梦想吧。</p>
<p>下面是其作者页面的详细说明（英文的！我将在近期以最简单的方式来加以说明！）</p>
<p><strong>（简单地说就是已经支持2.7版了，首先是下载插件安装，启用，然后在设置菜单中找到</strong>Domain Mirror项，按提示依次输入您想停靠的域名，标题、小标题、博客显示url（填两次），最后，最重要的也就是你必须将这些域名停靠在购买空间的主域名上－－在DreamHost空间是通过mirror项来解决！）－－祝您好运！</p>
<p><strong>WordPress 2.7:</strong> Works.<br />
<strong>WordPress 2.6.2:</strong> Works.<br />
<strong>WordPress 2.6.1:</strong> Works.<br />
<strong>WordPress 2.5:</strong> DomainMirror seems to work with no changes on this version, as long as the 2.3 patch is in place.</p>
<p>Download: <a title="Version 1.1 downloaded 597 times" href="http://mcaleavy.org/downloads/DomainMirror-v1.1.zip">Domain Mirror v1.1</a></p>
<p>Download: <a title="Version 1.2beta downloaded 651 times" href="http://mcaleavy.org/downloads/DomainMirror-v1.2beta.zip">Domain Mirror v1.2beta</a></p>
<p>Download: <a title="Version 1.3beta downloaded 652 times" href="http://mcaleavy.org/downloads/WP-DomainMirror-2.3fix.zip">WP-DomainMirror WordPress 2.3 fix</a></p>
<p>If you have more than one domain and want to point both of them at the same WordPress installation, you’ll find that it doesn’t really work very well. WordPress creates it’s own internal URLs based on the settings in General Options. This Plugin allows multiple domains to be configured within WordPress and updates the Weblog Title, WordPress Address URL and Blog Address URL on-the-fly based on the value of $_SERVER['SERVER_NAME'].</p>
<p>This allows one installation to show different URL paths, tagline and blog title for each domain.</p>
<p>What it won’t do is make one domain appear to be two, or change your domain configuration. You need to do that yourself, or have your hosting provider do it for you.</p>
<p>To see it in action, you can access this site via <a href="http://mcaleavy.org/">http://McAleavy.org</a> or <a href="http://lightpainting.org/">http://LightPainting.org</a>. Both point to a single WordPress installation, running on a single database.</p>
<p><strong>NB: It doesn’t appear to work with WordPress MU.</strong></p>
<h3>New in v1.1</h3>
<ol>
<li>You can now have a separate tagline on each domain.</li>
<li>The Admin screen has a button to copy in the current WordPress configuration to save on typing.</li>
<li>The Admin screen has buttons to clear content from whole domains and indivudual lines.</li>
</ol>
<h3>New in v1.2beta</h3>
<p>This version is pretty new, contains quite a few changes, and may have bugs. Please use it if you’d like to help find them.</p>
<ol>
<li>Theme switching.</li>
<li>SERVER_NAME / HTTP_HOST config option.</li>
<li>“no admin screen” switch.</li>
<li>More validation.</li>
<li>Added “stripcslashes”</li>
</ol>
<h3>Installation</h3>
<ol>
<li>Download and unpack the archive. If you downloaded the plugin from my site it will unpack to a directory named “AA-DomainMirror”, but if you got it from the WordPress plugin repository it will unpack to the direcotory “domain-mirror”. Either will work, but you may need to rename the latter to “AA-DomainMirror” if you have problems with some other plugins not seeing the changes. See below.</li>
<li>Copy the whole <strong>AA-DomainMirror</strong> directory to <strong>wp-content/plugins/</strong> If possible, don’t change the name of the directory, as the <strong>AA-</strong> at the start is a <em>horrible</em> hack to ensure that WordPress loads this plugin first. This is required as any plugin loaded before it won’t be able to see the changes it makes, so will behave as if it’s still on the default domain. This puzzled me for quite a while.</li>
<li>Go to your <strong>Plugins</strong> page and activate <strong>Domain Mirror</strong>.</li>
<li>Go to the <strong>Options -&gt; Domain Mirror</strong> page and configure as outlined below.</li>
</ol>
<h3>Upgrade</h3>
<p>Overwrite the old version with the new version.</p>
<h3>Usage</h3>
<p>When enabled, Domain Mirror will change the values of Weblog Title, Tagline, WordPress Address and Blog Address automatically. Where you have hard-coded the site name or a site URL into a post or page you should replace that entry with one of the tags provided. See below.</p>
<h3>Configuration</h3>
<p>Click the images to expand.</p>
<p>You will need to set up at least 2 domains that point to the same WordPress install. With Apache you can do that with <em>Virtual Hosts</em>. If you are using a hosted account there may be some way to set this up through the account configuration screens. On the host I use for this site, DreamHost, you do this by logging into the <em>Panel</em> interface and selecting <em>Domains &gt;&gt; Manage Domains</em>. Your first domain must be <em>Fully Hosted</em>. For the Domain you want to set as the Mirror, click the edit button. In the edit screen there are 5 options:</p>
<ol>
<li>Fully Hosted;</li>
<li>Redirected;</li>
<li>Mirrored;</li>
<li>Parked;</li>
<li>Cloaked.</li>
</ol>
<div class="NGimage"><a class="highslide" href="http://mcaleavy.org/wp-content/images/posts/Mirror.jpg"><img class="ngg-singlepic" src="http://mcaleavy.org/wp-content/images/cache/125__150x150_Mirror.jpg" alt="DreamHost Mirror Settings" /> </a></p>
<div id="caption125" class="highslide-caption">
<p class="title_text" style="margin-bottom: 0pt"><strong>DreamHost Mirror Settings</strong></p>
<p class="title_text" style="margin-bottom: 0pt"> </p>
</div>
</div>
<p>Select the <em>Mirrored</em> option, and set <em>Domain to mirror</em> to the name of your <em>Fully Hosted</em> domain. Shown here is this setting for my lightpainting.org domain, which mirrors mcaleavy.org.</p>
<div></div>
<div class="NGimage"><a class="highslide" href="http://mcaleavy.org/wp-content/images/posts/OptionsBefore.jpg"><img class="ngg-singlepic" src="http://mcaleavy.org/wp-content/images/cache/74__150x150_OptionsBefore.jpg" alt="Options Before" /> </a></p>
<div id="caption74" class="highslide-caption">
<p class="title_text" style="margin-bottom: 0pt"><strong>Options Before</strong></p>
<p class="title_text" style="margin-bottom: 0pt"> </p>
</div>
</div>
<p>Your existing WordPress configuration should be left as it is. This will not be changed unless you press Save on this page when viewed from a domain other than the default. See below.</p>
<div></div>
<div class="NGimage"><a class="highslide" href="http://mcaleavy.org/wp-content/images/posts/DomainsBefore2.jpg"><img class="ngg-singlepic" src="http://mcaleavy.org/wp-content/images/cache/79__150x150_DomainsBefore2.jpg" alt="Domains Before" /> </a></p>
<div id="caption79" class="highslide-caption">
<p class="title_text" style="margin-bottom: 0pt"><strong>Domains Before</strong></p>
<p class="title_text" style="margin-bottom: 0pt"> </p>
</div>
</div>
<p>On initial activation, the Domain Mirror options screen will display a default blank entry. This default is defined in conf.inc.php &#8211; which can be edited to set different defaults. The post tags used to display the current setting of these fields in posts or pages are shown to the right. Add this text to a post or page and it will be replaced by it’s value for the current domain. This allows such posts to display properly from any configured domain.</p>
<div></div>
<div class="NGimage"><a class="highslide" href="http://mcaleavy.org/wp-content/images/posts/FirstDomain2.jpg"><img class="ngg-singlepic" src="http://mcaleavy.org/wp-content/images/cache/80__150x150_FirstDomain2.jpg" alt="First Domain" /> </a></p>
<div id="caption80" class="highslide-caption">
<p class="title_text" style="margin-bottom: 0pt"><strong>First Domain</strong></p>
<p class="title_text" style="margin-bottom: 0pt"> </p>
</div>
</div>
<p>Fill in the settings for the current domain, or press the <em>Get Current Domain</em> button to get the values from the database. This is recommended because the General Options page will show the Domain Mirror configured settings when accessed from another domain. If you then press Save on that page those options will be written to the WordPress settings, overwriting the original settings. If you don’t have those settings in Domain Mirror, they will be lost and the original domain will not function properly until they are re-entered. If Save is not pressed, the original values will be retained and will be used again when the plugin is disabled.</p>
<div></div>
<div class="NGimage"><a class="highslide" href="http://mcaleavy.org/wp-content/images/posts/ChangesSaved.jpg"><img class="ngg-singlepic" src="http://mcaleavy.org/wp-content/images/cache/70__150x150_ChangesSaved.jpg" alt="Changes Saved" /> </a></p>
<div id="caption70" class="highslide-caption">
<p class="title_text" style="margin-bottom: 0pt"><strong>Changes Saved</strong></p>
<p class="title_text" style="margin-bottom: 0pt"> </p>
</div>
</div>
<p>Click the Save button to record the changes. The screen will reload and display the Changes Saved banner.</p>
<div></div>
<div class="NGimage"><a class="highslide" href="http://mcaleavy.org/wp-content/images/posts/NewBlankDomain2.jpg"><img class="ngg-singlepic" src="http://mcaleavy.org/wp-content/images/cache/81__150x150_NewBlankDomain2.jpg" alt="New Blank Domain" /> </a></p>
<div id="caption81" class="highslide-caption">
<p class="title_text" style="margin-bottom: 0pt"><strong>New Blank Domain</strong></p>
<p class="title_text" style="margin-bottom: 0pt"> </p>
</div>
</div>
<p>To add another domain, click the Add New Domain button. The page will refersh with a 2nd blank domain.</p>
<div></div>
<div class="NGimage"><a class="highslide" href="http://mcaleavy.org/wp-content/images/posts/SecondDomain2.jpg"><img class="ngg-singlepic" src="http://mcaleavy.org/wp-content/images/cache/82__150x150_SecondDomain2.jpg" alt="Second Domain" /> </a></p>
<div id="caption82" class="highslide-caption">
<p class="title_text" style="margin-bottom: 0pt"><strong>Second Domain</strong></p>
<p class="title_text" style="margin-bottom: 0pt"> </p>
</div>
</div>
<p>Fill in the details for the 2nd domain, and click Save Changes.</p>
<div></div>
<div class="NGimage"><a class="highslide" href="http://mcaleavy.org/wp-content/images/posts/SiteBefore.jpg"><img class="ngg-singlepic" src="http://mcaleavy.org/wp-content/images/cache/71__150x150_SiteBefore.jpg" alt="SiteBefore.jpg" /> </a></p>
<div id="caption71" class="highslide-caption">
<p class="title_text" style="margin-bottom: 0pt"><strong>SiteBefore.jpg</strong></p>
<p class="title_text" style="margin-bottom: 0pt"> </p>
</div>
</div>
<p>Now, when viewed using the first domain, the site remains unchanged.</p>
<div></div>
<div class="NGimage"><a class="highslide" href="http://mcaleavy.org/wp-content/images/posts/SiteAfter.jpg"><img class="ngg-singlepic" src="http://mcaleavy.org/wp-content/images/cache/72__150x150_SiteAfter.jpg" alt="Site After" /> </a></p>
<div id="caption72" class="highslide-caption">
<p class="title_text" style="margin-bottom: 0pt"><strong>Site After</strong></p>
<p class="title_text" style="margin-bottom: 0pt"> </p>
</div>
</div>
<p>When viewed using the second domain, the site appears as if configured for that domain.</p>
<div></div>
<div class="NGimage"><a class="highslide" href="http://mcaleavy.org/wp-content/images/posts/OptionsAfter.jpg"><img class="ngg-singlepic" src="http://mcaleavy.org/wp-content/images/cache/75__150x150_OptionsAfter.jpg" alt="Options After" /> </a></p>
<div id="caption75" class="highslide-caption">
<p class="title_text" style="margin-bottom: 0pt"><strong>Options After</strong></p>
<p class="title_text" style="margin-bottom: 0pt"> </p>
</div>
</div>
<p>The General Options screen, when accessed from the new domain, now displays the details for that domain. These options, however, are coming from the Domain Mirror configuration and not from the WordPress settings. As noted before, if save is pressed on this page these options will be written to the WordPress settings, overwriting the original settings. If you don’t have those settings in Domain Mirror, they will be lost and the original domain will not function properly until they are re-entered.</p>
<p>To delete a domain, press the Delete Domain button and it will be removed from the page. This change will be written to the database when you next press Save Changes. If you delete all of the entries in Domain Mirror it will return to it’s default settings. If you wish to alter these defaults you can edit the file <strong>config.inc.php</strong> in the <strong>AA-DomainMirror</strong> directory. The “X” buttons on each line can be used to clear the contents of that line and the <em>Clear All</em> button can be used to clear the contents of that domain setting. Again, pressing <em>Save Changes</em> is rquired to make these changes permanent.</p>
]]></content:encoded>
			<wfw:commentRss>http://free5.org/2009/03/11/e5-b7-a7-e5-a6-99-e4-bd-bf-e7-94-a8domain-mirror-plugin-e6-8f-92-e4-bb-b6-e8-ae-a9-e6-82-a8-e7-9a-84wordpress-e5-8d-9a-e5-ae-a2-e6-94-af-e6-8c-81-e5-a4-9a-e5-9f-9f-e5-90-8d-e8-ae-bf-e9-97-ae/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

