<?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>Development memo &#187; htaccess</title>
	<atom:link href="http://officesoya.net/weblog/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://officesoya.net/weblog</link>
	<description>Rough Consensus　And Running code</description>
	<lastBuildDate>Mon, 21 Jun 2010 09:22:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://officesoya.net/weblog/tag/htaccess/feed/" />
		<item>
		<title>.htaccessを有効にするためにAllowOverride AllにするとForbiddenになる・・・</title>
		<link>http://officesoya.net/weblog/2008/11/08/opencart/</link>
		<comments>http://officesoya.net/weblog/2008/11/08/opencart/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 08:07:01 +0000</pubDate>
		<dc:creator>soya</dc:creator>
				<category><![CDATA[OpenCart]]></category>
		<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://officesoya.net/weblog/?p=102</guid>
		<description><![CDATA[OpenCartのインターフェイスがかわいくて大変気に入っているのですが、日本ではほとんど使われていないOpenCartを必死に日本語化しているさなか、ローカル(WindowsXP)ではリンクをクリックしてもページが変わ [...]]]></description>
			<content:encoded><![CDATA[<p><a title="OpenCart" href="http://http://www.opencart.com/" target="_blank">OpenCart</a>のインターフェイスがかわいくて大変気に入っているのですが、日本ではほとんど使われていないOpenCartを必死に日本語化しているさなか、ローカル(WindowsXP)ではリンクをクリックしてもページが変わらない、テストサーバー(Fedora Core6)ではRewriteが動いていない様子でNotFoundになってしまい、心が折れました・・・。日本語の情報が少なすぎなのは覚悟の上でしたが。英語のFAQを読み漁っていると、解決しました。私はチルダ付きのUserdirにインストールしたわけだが、以下の太字の部分を加える必要があったのです。</p>
<p>&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
<strong><br />
# Put your installation directory here:<br />
# If your URL is www.example.com/shop/, use /shop/<br />
# If your URL is www.example.com/, use /<br />
<span style="text-decoration: line-through;">RewriteBase /</span><br />
RewriteBase /~mydir/</strong></p>
<p>#OPENCART REWRITES START<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule ^(.*) index.php<br />
#OPENCART REWRITES END</p>
<p>&lt;/IfModule&gt;</p>
<p>テストサーバー(Fedora Core6)では上記の問題に加え、.htaccessの設定をhttpd.confで使用しているディレクトリにだけ<br />
AllowOverride All<br />
としてみるとForbiddenに<br />
AllowOcerride None<br />
としてみるとトップページは表示されるがその他のページはFileNotFoundになってしまうという現象に悩まされた。<br />
が、.htaccessのパーミッションが間違っていた・・・644で表示できました。</p>
<p>日本語情報がかなり少ないOpenCartですが、ソースコードが整理されていてカスタマイズしやすそうなので選びました。ZenCartやPrestaShopもインストールしてみたけど、どうも管理画面とかが気に入らない・・・<br />
皆さんこんなにかわいい<a title="OpenCart" href="http://http://www.opencart.com/" target="_blank">OpenCart</a>をもっと使ってください！</p>
]]></content:encoded>
			<wfw:commentRss>http://officesoya.net/weblog/2008/11/08/opencart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://officesoya.net/weblog/2008/11/08/opencart/" />
	</item>
	</channel>
</rss>
