<?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>China WordPress &#187; 目录</title>
	<atom:link href="http://www.chinawp.com/tag/%e7%9b%ae%e5%bd%95/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chinawp.com</link>
	<description>WordPress 博客中文站</description>
	<lastBuildDate>Fri, 02 Oct 2009 20:07:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>让博客首页与WordPress安装在不同的目录</title>
		<link>http://www.chinawp.com/2009/09/22/</link>
		<comments>http://www.chinawp.com/2009/09/22/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 09:07:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[安装详解]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[目录]]></category>

		<guid isPermaLink="false">http://chinawp.com/?p=22</guid>
		<description><![CDATA[让博客首页与WordPress安装在不同的目录]]></description>
			<content:encoded><![CDATA[<p>很多人在第一次安装WordPress时，都会直接将整个WordPress程序上传到虚拟主机上，所以安装完后的博客地址看起来都会像是http: //www.yourdomain.com/wordpress/，通常这时候还需要在http://www.yourdomain.com/跟目录下的 index.html文件的META加入一个refresh转换网页到http: //www.yourdomain.com/wordpress/的语法，让读者可以只要输入你的网址就可以可以连上你安装WordPress的页面。如果今天你的虚拟主机里面只有安装WordPress的话，max要跟大家分享另外一种简单的方法，让整个博客网址看起来更简短又清楚。让读者只要输入你的网址就可以看见你的博客。例如：原来文章的网址是http://www.yourdomain.com/wordpress/?p=98改变成 http://www.yourdomain.com/?p=98，输入http://www.yourdomain.com就到你的博客首页。</p>
<p>1.登入你的WordPress管理介面，一般选项→一般设定，找到网志位址(URL)：栏位里填入你的网址位置，例如：http://www.yourdomain.com/ ，完成后按更新选项。</p>
<p>2.复制你WordPress程序里的index.php与.htaccess这两个文件，然后修改index.php文件，找到require (&#8217;./wp-blog-header.php&#8217;);，把它修改成require(&#8217; ./wordpress/wp-blog-header.php’);，wordpress这个粗体字是指你安装WordPress的目录，请依照你确实安装WordPress的目录而填写，修改完成后再上传到你的虚拟主机（http://www.yourdomain.com/）根目录下。</p>
<p>3.以上完成，现在只要大家输入你的网址就可以看见你以WordPress安装的部落格了，而网址也就更简洁了。</p>
<p>（注一）上述的情况必须是根目录下只有index.php唯一index文件时才可以，如果含有其他index文件，例如index.htm或是index.html的话，则需要另做调整。</p>
<p>（注二）参考文章来源：<a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">Giving WordPress its Own Directory While Leaving Your Blog in the Root Directory</a>（给WordPress安装在自己的目录，将博客放在根目录）。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chinawp.com/2009/09/22/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
