<?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; 域名</title>
	<atom:link href="http://www.wangtianqi.com/blog/tag/%e5%9f%9f%e5%90%8d/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wangtianqi.com/blog</link>
	<description>每一天都是新的开始</description>
	<lastBuildDate>Mon, 12 Sep 2011 10:42:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>为wordpress绑定多个域名</title>
		<link>http://www.wangtianqi.com/blog/136</link>
		<comments>http://www.wangtianqi.com/blog/136#comments</comments>
		<pubDate>Tue, 16 Dec 2008 03:40:05 +0000</pubDate>
		<dc:creator>czyhd</dc:creator>
				<category><![CDATA[blog相关]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[域名]]></category>

		<guid isPermaLink="false">http://www.wangtianqi.com/136</guid>
		<description><![CDATA[按照默认设置,wordpress只能绑定一个域名..这些数据存在数据库里,但是,自定义常量的优先级要高于数据库,所以,对于有多个镜像的blog,可以这样做..

修改wp-config.php,在&#60;?php后添加代码. 我的代码如下:



<span class="readmore"><a href="http://www.wangtianqi.com/blog/136" title="为wordpress绑定多个域名">阅读全文——共562字</a></span>]]></description>
			<content:encoded><![CDATA[<p>按照默认设置,wordpress只能绑定一个域名..这些数据存在数据库里,但是,自定义常量的优先级要高于数据库,所以,对于有多个镜像的blog,可以这样做..<br />
修改wp-config.php,在&lt;?php后添加代码. 我的代码如下:</p>
<blockquote><p>
if ($_SERVER['HTTP_HOST']==&#8217;www.wangtianqi.com&#8217;):<br />
define(“WP_SITEURL”, “http://www.wangtianqi.com/wordpress”);<br />
define(“WP_HOME”, “http://www.wangtianqi.com”);<br />
elseif ($_SERVER['HTTP_HOST']==&#8217;wangtianqi.com&#8217;):<br />
define(“WP_SITEURL”, “http://wangtianqi.com/wordpress”);<br />
define(“WP_HOME”, “http://wangtianqi.com”);<br />
else :<br />
define(“WP_SITEURL”, “http://cnc.wangtianqi.com/wordpress”);<br />
define(“WP_HOME”, “http://cnc.wangtianqi.com”);<br />
endif;</p></blockquote>
<p>判断当前域名,然后根据域名设置wordpress的目录和显示目录..</p>
<h3  class="related_post_title">相关主题</h3><ul class="related_post"><li><a href="http://www.wangtianqi.com/blog/157" title="对Blog进行了一些修改">对Blog进行了一些修改</a></li><li><a href="http://www.wangtianqi.com/blog/149" title="用openoffice写wordpress博客">用openoffice写wordpress博客</a></li><li><a href="http://www.wangtianqi.com/blog/137" title="wordpress feed格式丢失的解决">wordpress feed格式丢失的解决</a></li><li><a href="http://www.wangtianqi.com/blog/132" title="ubuntu下安装wordpress">ubuntu下安装wordpress</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.wangtianqi.com/blog/136/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

