<?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.host114.org/tag/%e5%9f%9f%e5%90%8d%e6%8c%87%e5%90%91/feed" rel="self" type="application/rss+xml" />
	<link>http://www.host114.org</link>
	<description>美国虚拟主机，美国主机，国外主机资讯。关于国外的虚拟主机，VPS，独立主机一切信息</description>
	<lastBuildDate>Sat, 04 Sep 2010 07:13:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>网站的域名指向</title>
		<link>http://www.host114.org/hosting/hostmonster/web.htm</link>
		<comments>http://www.host114.org/hosting/hostmonster/web.htm#comments</comments>
		<pubDate>Fri, 29 Feb 2008 02:10:35 +0000</pubDate>
		<dc:creator>user1</dc:creator>
				<category><![CDATA[hostmonster]]></category>
		<category><![CDATA[域名指向]]></category>

		<guid isPermaLink="false">http://www.host114.org/hosting/hostmonster/web.htm</guid>
		<description><![CDATA[用户在HostMonster上购买空间并注册了一个主域名，默认的主域名指向/，添加的addon域名指向/public_html。想要达到如下效果：
1.设置主域名www.aaa.com指向/public_html/aaa文件夹内
2.设置addon域名www.bbb.com指向/public_html/bbb文件夹内
用户可以参考如下方法，编辑public_html目录下的.htaccess文件,加入如下语句.如果public_html下没有.htaccess文件,新建一个即可.
注意:将 yourmaindomain.com修改为你的域名,将subfolder修改为你要指向的public_html下的子目录.最后一行中的index.php修改为你的网站的主页名称.(修改粗体表示的内容,其他内容不要改动)
# www.hostmonstercn.com
# .htaccess main domain to subfolder redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.
RewriteEngine on
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?yourmaindomain.com$
# Change ’subfolder’ to be the folder you will [...]]]></description>
			<content:encoded><![CDATA[<p>用户在HostMonster上购买空间并注册了一个主域名，默认的主域名指向/，添加的addon域名指向/public_html。想要达到如下效果：<br />
1.设置主域名<a href="http://www.aaa.com/">www.aaa.com</a>指向/public_html/aaa文件夹内<br />
2.设置addon域名<a href="http://www.bbb.com/">www.bbb.com</a>指向/public_html/bbb文件夹内</p>
<p>用户可以参考如下方法，编辑public_html目录下的.htaccess文件,加入如下语句.如果public_html下没有.htaccess文件,新建一个即可.<br />
<strong>注意:将 yourmaindomain.com修改为你的域名,将subfolder修改为你要指向的public_html下的子目录.最后一行中的index.php修改为你的网站的主页名称.(修改粗体表示的内容,其他内容不要改动)</strong></p>
<p># <a href="http://www.hostmonstercn.com/">www.hostmonstercn.com</a><br />
# .htaccess main domain to subfolder redirect<br />
# Copy and paste the following code into the .htaccess file<br />
# in the public_html folder of your hosting account<br />
# make the changes to the file according to the instructions.</p>
<p>RewriteEngine on<br />
# Change yourdomain.com to be your main domain.</p>
<p>RewriteCond %{HTTP_HOST} ^(<a href="http://www.)/?yourmaindomain.com$">www.)?<strong><font color="#000000">yourmaindomain.com</font></strong>$</a></p>
<p># Change ’subfolder’ to be the folder you will use for your main domain.</p>
<p>RewriteCond %{REQUEST_URI} !^/<strong>subfolder</strong>/</p>
<p># Don’t change this line.</p>
<p>RewriteCond %{REQUEST_FILENAME} !-f</p>
<p>RewriteCond %{REQUEST_FILENAME} !-d</p>
<p># Change ’subfolder’ to be the folder you will use for your main domain.</p>
<p>RewriteRule ^(.*)$ /<strong>subfolder</strong>/$1</p>
<p># Change yourdomain.com to be your main domain again.</p>
<p># Change ’subfolder’ to be the folder you will use for your main domain</p>
<p># followed by / then the main file for your site, index.php, index.html, etc.</p>
<p>RewriteCond %{HTTP_HOST} ^(<a href="http://www.)/?yourmaindomain.com$">www.)?<strong><font color="#000000">yourmaindomain.com</font></strong>$</a></p>
<p>RewriteRule ^(/)?$ <strong>subfolder</strong>/<strong>index.php</strong> [L]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.host114.org/hosting/hostmonster/web.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
