<?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>xiaofeng&#039;s blog &#187; 301重定向</title>
	<atom:link href="http://shenxf.com/tag/301%e9%87%8d%e5%ae%9a%e5%90%91/feed" rel="self" type="application/rss+xml" />
	<link>http://shenxf.com</link>
	<description>&#60;seo&#62;......&#60;/seo&#62;</description>
	<lastBuildDate>Wed, 14 Dec 2011 18:37:21 +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>一个关于301重定向的问题</title>
		<link>http://shenxf.com/2010-07/a-problem-about-301-url-redirect.html</link>
		<comments>http://shenxf.com/2010-07/a-problem-about-301-url-redirect.html#comments</comments>
		<pubDate>Sat, 17 Jul 2010 10:30:41 +0000</pubDate>
		<dc:creator>小锋</dc:creator>
				<category><![CDATA[网站建设]]></category>
		<category><![CDATA[301重定向]]></category>

		<guid isPermaLink="false">http://shenxf.com/?p=245</guid>
		<description><![CDATA[<p>最近遇到一个问题，是关于301重定向的，我将一个页面a.html重命名为b.html，忘记写.htaccess了，在webmaster工具里面看到了google的断链提醒，于是写一下htaccess。</p>
<p>写htaccess时，google了下，发现网上大量关于htaccess的文章都是相互抄袭的，不过后来，还是找到现有两种解决方法</p>
<blockquote><p>1.</p>
<p>RewriteRule   ^a\.html$  b.html</p>
<p id="_mcePaste">2.</p>
<p>Redirect /a.html /b.html</p></blockquote>
<p>两种都可以实现，用第一种方式的时候，在浏览器输入xxx.com/a.html的时候url没有跳转，但内容已是b.html的了，因为a.html已经不存在了</p>
<p>用第二种方式的时候，在浏览器输入xxx.com/a.html的时候，url直接跳转成了xxx.com/b.html，这个是实现了URL的跳转</p>
<p>第一种方式是我从新号角培训的内部资料 &#8211; 301重定向技术详解，这里面看到的，现提供该PDF文档的下载：</p>
<p><a href="http://shenxf.com/wp-content/uploads/2010/07/301-url-redirect.pdf">301 重定......<a href='http://shenxf.com/2010-07/a-problem-about-301-url-redirect.html' rel="nofollow">查看<?php the_title(); ?>全文</a></p>阅读了本文的人还看了:Google官方称网页加载速度列入pagerank算法 WP自动保存、缓存内容大清理 bluehost邮件设置问题 用.htaccess限制恶意IP的访问 IT咖啡厅第二讲：软文推广的价值


阅读了本文的人还看了:<ol><li><a href='http://shenxf.com/2010-04/useing-site-speed-in-pagerank.html' rel='bookmark' title='Google官方称网页加载速度列入pagerank算法'>Google官方称网页加载速度列入pagerank算法</a></li>
<li><a href='http://shenxf.com/2011-03/wp-clear-draft.html' rel='bookmark' title='WP自动保存、缓存内容大清理'>WP自动保存、缓存内容大清理</a></li>
<li><a href='http://shenxf.com/2010-07/problem-about-bluehost-mail-setup.html' rel='bookmark' title='bluehost邮件设置问题'>bluehost邮件设置问题</a></li>
<li><a href='http://shenxf.com/2010-08/block-some-ip.html' rel='bookmark' title='用.htaccess限制恶意IP的访问'>用.htaccess限制恶意IP的访问</a></li>
<li><a href='http://shenxf.com/2010-03/itkafeiting-lession-2.html' rel='bookmark' title='IT咖啡厅第二讲：软文推广的价值'>IT咖啡厅第二讲：软文推广的价值</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>最近遇到一个问题，是关于301重定向的，我将一个页面a.html重命名为b.html，忘记写.htaccess了，在webmaster工具里面看到了google的断链提醒，于是写一下htaccess。</p>
<p>写htaccess时，google了下，发现网上大量关于htaccess的文章都是相互抄袭的，不过后来，还是找到现有两种解决方法</p>
<blockquote><p>1.</p>
<p>RewriteRule   ^a\.html$  b.html</p>
<p id="_mcePaste">2.</p>
<p>Redirect /a.html /b.html</p></blockquote>
<p>两种都可以实现，用第一种方式的时候，在浏览器输入xxx.com/a.html的时候url没有跳转，但内容已是b.html的了，因为a.html已经不存在了</p>
<p>用第二种方式的时候，在浏览器输入xxx.com/a.html的时候，url直接跳转成了xxx.com/b.html，这个是实现了URL的跳转</p>
<p>第一种方式是我从新号角培训的内部资料 &#8211; 301重定向技术详解，这里面看到的，现提供该PDF文档的下载：</p>
<p><a href="http://shenxf.com/wp-content/uploads/2010/07/301-url-redirect.pdf">301 重定......<a href='http://shenxf.com/2010-07/a-problem-about-301-url-redirect.html' rel="nofollow">查看<?php the_title(); ?>全文</a></p>

<p>阅读了本文的人还看了:<ol><li><a href='http://shenxf.com/2010-04/useing-site-speed-in-pagerank.html' rel='bookmark' title='Google官方称网页加载速度列入pagerank算法'>Google官方称网页加载速度列入pagerank算法</a></li>
<li><a href='http://shenxf.com/2011-03/wp-clear-draft.html' rel='bookmark' title='WP自动保存、缓存内容大清理'>WP自动保存、缓存内容大清理</a></li>
<li><a href='http://shenxf.com/2010-07/problem-about-bluehost-mail-setup.html' rel='bookmark' title='bluehost邮件设置问题'>bluehost邮件设置问题</a></li>
<li><a href='http://shenxf.com/2010-08/block-some-ip.html' rel='bookmark' title='用.htaccess限制恶意IP的访问'>用.htaccess限制恶意IP的访问</a></li>
<li><a href='http://shenxf.com/2010-03/itkafeiting-lession-2.html' rel='bookmark' title='IT咖啡厅第二讲：软文推广的价值'>IT咖啡厅第二讲：软文推广的价值</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://shenxf.com/2010-07/a-problem-about-301-url-redirect.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

