<?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>Eeq's Blog &#187; 114</title>
	<atom:link href="http://www.iteeq.com/archives/tag/114/feed" rel="self" type="application/rss+xml" />
	<link>http://www.iteeq.com</link>
	<description>Just a bloger's blog!</description>
	<lastBuildDate>Mon, 03 May 2010 13:37:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>LINUX服务器利用.htaccess进行301永久重定向更改网站域名SEO</title>
		<link>http://www.iteeq.com/archives/186</link>
		<comments>http://www.iteeq.com/archives/186#comments</comments>
		<pubDate>Wed, 30 Jan 2008 03:59:21 +0000</pubDate>
		<dc:creator>EEQ</dc:creator>
				<category><![CDATA[网络相关]]></category>
		<category><![CDATA[11]]></category>
		<category><![CDATA[114]]></category>
		<category><![CDATA[149]]></category>
		<category><![CDATA[157]]></category>
		<category><![CDATA[48]]></category>
		<category><![CDATA[74]]></category>
		<category><![CDATA[85]]></category>
		<category><![CDATA[9]]></category>

		<guid isPermaLink="false">http://iteeq.cn/?p=186</guid>
		<description><![CDATA[同类文章网上也很多,这里写下来方便自己以后使用:)
建站过程中, 有时候会需要到更改域名, 而又怕更改域名后旧的域名所被搜索引擎收录的连接会费掉, 这种时候就需要乃至301永久重定向了.
例如我其中一个垃圾站,www.iteeq.com, 下面绑定了二级米wow.iteeq.com, 现在我想把这个子站分出来, 作为一个新的网站, 和www.iteeq.com区别开来, 于是我就重新绑定好新的域名后, 在wow.iteeq.com根目录(注意,是wow.iteeq.com的根目录,而不是www.iteeq.com的根目录)新建一个.htaccess文件,内容如下:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^http://wow.iteeq.com$
RewriteRule ^(.*)$ http://wow2you.cn/$1 [R=301,L]

如此, 当用户在搜索引擎搜索到wow.iteeq.com的文章后, 就会直接自动跳到wow2you.cn下
例如, 你现在访问wow.iteeq.com/show.php?itemid=7702
会发现地址栏的地址自动变成了http://wow2you.cn/show.php?itemid=7702
上面的例子是二级域名的重定向, 同理, 顶级域名的重定向例子如下 :
注意.htaccess要放在你要重定向的旧域名的根目录, 这个例子里, .htaccess放在www.iteeq.com的根目录.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^http://www.iteeq.com$
RewriteRule ^(.*)$ http://wow2you.cn/$1 [R=301,L]

301重定向的好处就不多说了, 希望对大家会有用.
]]></description>
			<content:encoded><![CDATA[<p>同类文章网上也很多,这里写下来方便自己以后使用:)</p>
<p>建站过程中, 有时候会需要到更改域名, 而又怕更改域名后旧的域名所被搜索引擎收录的连接会费掉, 这种时候就需要乃至301永久重定向了.</p>
<p>例如我其中一个垃圾站,www.iteeq.com, 下面绑定了二级米wow.iteeq.com, 现在我想把这个子站分出来, 作为一个新的网站, 和www.iteeq.com区别开来, 于是我就重新绑定好新的域名后, 在wow.iteeq.com根目录(注意,是wow.iteeq.com的根目录,而不是www.iteeq.com的根目录)新建一个.htaccess文件,内容如下:</p>
<p><code><br />
RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^http://wow.iteeq.com$<br />
RewriteRule ^(.*)$ http://wow2you.cn/$1 [R=301,L]<br />
</code></p>
<p>如此, 当用户在搜索引擎搜索到wow.iteeq.com的文章后, 就会直接自动跳到wow2you.cn下<br />
例如, 你现在访问wow.iteeq.com/show.php?itemid=7702<br />
会发现地址栏的地址自动变成了http://wow2you.cn/show.php?itemid=7702</p>
<p>上面的例子是二级域名的重定向, 同理, 顶级域名的重定向例子如下 :</p>
<p>注意.htaccess要放在你要重定向的旧域名的根目录, 这个例子里, .htaccess放在www.iteeq.com的根目录.<br />
<code><br />
RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^http://www.iteeq.com$<br />
RewriteRule ^(.*)$ http://wow2you.cn/$1 [R=301,L]<br />
</code></p>
<p>301重定向的好处就不多说了, 希望对大家会有用.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iteeq.com/archives/186/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
