<?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>橋本雄の技術ブログ &#187; htaccess</title>
	<atom:link href="http://labs.asunochikara.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.asunochikara.com</link>
	<description>橋本雄がvim、ubuntu、phpなどの技術情報をまとめています</description>
	<lastBuildDate>Fri, 14 May 2010 14:17:59 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labs.asunochikara.com/tag/htaccess/feed/" />
		<item>
		<title>htaccessに空白スペースは要注意</title>
		<link>http://labs.asunochikara.com/2009/12/htaccess%e3%81%ab%e7%a9%ba%e7%99%bd%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%81%af%e8%a6%81%e6%b3%a8%e6%84%8f/</link>
		<comments>http://labs.asunochikara.com/2009/12/htaccess%e3%81%ab%e7%a9%ba%e7%99%bd%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%81%af%e8%a6%81%e6%b3%a8%e6%84%8f/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 09:48:00 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://labs.asunochikara.com/?p=208</guid>
		<description><![CDATA[htaccessファイルを記載する場合に、必要以外の空白は命取りに！！なります。

Order allow,deny     許可してから拒否
Order deny,allow     拒否してから許可

このようなとき [...]]]></description>
			<content:encoded><![CDATA[<p>htaccessファイルを記載する場合に、必要以外の空白は命取りに！！なります。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Order allow,deny     許可してから拒否
Order deny,allow     拒否してから許可</pre></div></div>

<p>このようなときに、allow, denyのように、カンマの後、空白を入れたい衝動に駆られるとNGとなります。<br />
注意しましょう！！</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.asunochikara.com/2009/12/htaccess%e3%81%ab%e7%a9%ba%e7%99%bd%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%81%af%e8%a6%81%e6%b3%a8%e6%84%8f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labs.asunochikara.com/2009/12/htaccess%e3%81%ab%e7%a9%ba%e7%99%bd%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%81%af%e8%a6%81%e6%b3%a8%e6%84%8f/" />
	</item>
		<item>
		<title>mod_rewritedeでサイトを表示させなくする</title>
		<link>http://labs.asunochikara.com/2009/09/mod_rewrite/</link>
		<comments>http://labs.asunochikara.com/2009/09/mod_rewrite/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 08:45:54 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://labs.asunochikara.com/?p=166</guid>
		<description><![CDATA[お客様からサイトを取り合えず非表示にしたいという相談がありました。
そこで、
.htaccessにて

1
2
RewriteEngine on
RewriteRule .* - &#91;F&#93;

これで、完全に [...]]]></description>
			<content:encoded><![CDATA[<p>お客様からサイトを取り合えず非表示にしたいという相談がありました。<br />
そこで、<br />
.htaccessにて</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">RewriteEngine on
RewriteRule .<span style="color: #000000; font-weight: bold;">*</span> - <span style="color: #7a0874; font-weight: bold;">&#91;</span>F<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></td></tr></table></div>

<p>これで、完全に、forbiddenとなりました</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.asunochikara.com/2009/09/mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labs.asunochikara.com/2009/09/mod_rewrite/" />
	</item>
		<item>
		<title>SSIを使う</title>
		<link>http://labs.asunochikara.com/2009/04/ssi%e3%82%92%e4%bd%bf%e3%81%86/</link>
		<comments>http://labs.asunochikara.com/2009/04/ssi%e3%82%92%e4%bd%bf%e3%81%86/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 10:24:38 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[未分類]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[SSI]]></category>

		<guid isPermaLink="false">http://labs.asunochikara.com/2009/04/ssi%e3%82%92%e4%bd%bf%e3%81%86/</guid>
		<description><![CDATA[SSIを使うには、.htaccessで以下の記述が必要です。
最近、久しぶりに目にする機会があったもので、まとめておきます。

1
2
3
4
&#60;files ~ &#34;\.html$&#34;&#62;
op [...]]]></description>
			<content:encoded><![CDATA[<p>SSIを使うには、.htaccessで以下の記述が必要です。<br />
最近、久しぶりに目にする機会があったもので、まとめておきます。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>files ~ <span style="color: #ff0000;">&quot;\.html$&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span>
options +Includes
AddHandler server-parsed .html
<span style="color: #000000; font-weight: bold;">&lt;/</span>files<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://labs.asunochikara.com/2009/04/ssi%e3%82%92%e4%bd%bf%e3%81%86/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labs.asunochikara.com/2009/04/ssi%e3%82%92%e4%bd%bf%e3%81%86/" />
	</item>
		<item>
		<title>wordpressのプラグインの自動インストール</title>
		<link>http://labs.asunochikara.com/2008/10/wordpress-plugin/</link>
		<comments>http://labs.asunochikara.com/2008/10/wordpress-plugin/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 02:37:44 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://labs.asunochikara.com/?p=40</guid>
		<description><![CDATA[XREAサーバーを利用してWordpressを運用していますが、プラグインが管理画面からアップデートできるようになっていたので、すかさずリンクを押すも、セーフモードの制限があってうまくいかないため、.htaccessで対 [...]]]></description>
			<content:encoded><![CDATA[<p>XREAサーバーを利用してWordpressを運用していますが、プラグインが管理画面からアップデートできるようになっていたので、すかさずリンクを押すも、セーフモードの制限があってうまくいかないため、.htaccessで対応。無事にできるようになりました。<br />
以下の内容を.htaccessファイルに書いて、wp-adminのフォルダーに入れればOKです。</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>files update.php<span style="color: #000000; font-weight: bold;">&gt;</span>
AddHandler application<span style="color: #000000; font-weight: bold;">/</span>x-httpd-phpcgi .php
<span style="color: #000000; font-weight: bold;">&lt;/</span>files<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>ちなみに、管理画面のデザインが崩れたりといったことを含めて、設置すべき.htaccessはこんな感じ。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># ファイルのアップロード</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>files async-upload.php<span style="color: #000000; font-weight: bold;">&gt;</span>
AddHandler application<span style="color: #000000; font-weight: bold;">/</span>x-httpd-phpcgi .php
<span style="color: #000000; font-weight: bold;">&lt;/</span>files<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># プラグインの新規インストール</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>files plugin-install.php<span style="color: #000000; font-weight: bold;">&gt;</span>
AddHandler application<span style="color: #000000; font-weight: bold;">/</span>x-httpd-phpcgi .php
<span style="color: #000000; font-weight: bold;">&lt;/</span>files<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># テーマの自動アップグレード</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>files update.php<span style="color: #000000; font-weight: bold;">&gt;</span>
AddHandler application<span style="color: #000000; font-weight: bold;">/</span>x-httpd-phpcgi .php
<span style="color: #000000; font-weight: bold;">&lt;/</span>files<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># コアアップグレード</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>files update-core.php<span style="color: #000000; font-weight: bold;">&gt;</span>
AddHandler application<span style="color: #000000; font-weight: bold;">/</span>x-httpd-phpcgi .php
<span style="color: #000000; font-weight: bold;">&lt;/</span>files<span style="color: #000000; font-weight: bold;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://labs.asunochikara.com/2008/10/wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://labs.asunochikara.com/2008/10/wordpress-plugin/" />
	</item>
	</channel>
</rss>
