<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>///onelove*Diary/// &#187; .htaccess</title>
	<atom:link href="http://onelove.to/diary/tag/htaccess/feed" rel="self" type="application/rss+xml" />
	<link>http://onelove.to/diary</link>
	<description>日々のアレやコレや…のんびり、まったり、記します…。</description>
	<lastBuildDate>Sun, 29 Aug 2010 12:52:28 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://onelove.to/diary/tag/htaccess/feed" />
		<item>
		<title>旧ページを新ページへ飛ばす方法</title>
		<link>http://onelove.to/diary/2009/04/08_220306</link>
		<comments>http://onelove.to/diary/2009/04/08_220306#comments</comments>
		<pubDate>Wed, 08 Apr 2009 13:03:06 +0000</pubDate>
		<dc:creator>natsu*</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">http://onelove.to/diary/?p=431</guid>
		<description><![CDATA[サイトを引っ越したりしてアドレスが変わるときに便利なのが、[.htaccess]で作るリダイレクト。 ざっと検索すると、 [...]]]></description>
			<content:encoded><![CDATA[<p>サイトを引っ越したりしてアドレスが変わるときに便利なのが、[.htaccess]で作るリダイレクト。<br />
ざっと検索すると、たくさんやり方が出てくるので、ちょちょいのちょいとやってみたんだけど、リダイレクトしない………。</p>
<p>とりあえず、基本的な記述の仕方は、<a href="http://mikeneko.creator.club.ne.jp/~lab/web/htaccess/redirect.html">ミケネコの htaccess リファレンス</a>や、<a href="http://w3g.jp/others/htaccess/redirect">HTTPリダイレクト Others .htaccess</a>でお勉強。</p>
<dl>
<dt><img src="http://onelove.to/diary/xx/img/m_memo.gif" />旧サイトから新サイトへ一部移動した場合
<dt>
<dd>
<ul>
<li>[.htaccess]ファイルに以下のコードを記述。</li>
<div class="co-de">
今回は、http://onelove.to/mini/のディレクトリ内の記事の一部を http://onelove.to/diary/内に移動する。</p>
<p>以下のコードで、<br />
[/log/eid200.html] は旧アドレス。<br />
[http://onelove.to/diary/2007/09/27＿125930] は新アドレス。
</p></div>
<div class="igBar"><span id="lcode-3"><a href="#" onclick="javascript:showCodeTxt('code-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-3">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Redirect permanent /log/eid200.<span style="">html</span> http:<span style="color:#FF9933; font-style:italic;">//onelove.to/diary/2007/09/27_125930 </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<li>次に、[.htaccess]ファイルをサーバーへアップ。で、完了～のはずがリダイレクトしない。</li>
<div class="co-de">
コード内に、[/log/eid200.html]と記述したから、てっきりその上のディレクトリ、つまり[mini]にファイルをアップしてたんだけど、それがダメだったみたい。</p>
<p>コードの旧サイトアドレスに[/mini]を足して、サーバーの[mini]内にファイルをアップしました。
</p></div>
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showCodeTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Redirect permanent /mini/log/eid200.<span style="">html</span> http:<span style="color:#FF9933; font-style:italic;">//onelove.to/diary/2007/09/27_125930 </span></div>
</li>
</ol>
</div>
</div>
</div>
<p>
</ul>
</dd>
</dl>
<p>今度は、ちゃんとリダイレクトされました。<br />
って、こんなドジする人は、いないですよね(^^;;　</p>
]]></content:encoded>
			<wfw:commentRss>http://onelove.to/diary/2009/04/08_220306/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://onelove.to/diary/2009/04/08_220306" />
	</item>
	</channel>
</rss>

