<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>btmup Blog</title>
	
	<link>http://blog.btmup.com</link>
	<description>底辺から社会を見上げてみる感じ。</description>
	<lastBuildDate>Thu, 09 Sep 2010 08:29:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</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://blog.btmup.com/feed" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/btmup_blog" /><feedburner:info uri="btmup_blog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Dreamweaver のテンプレートで編集可能領域外の要素の属性を編集可能にする方法</title>
		<link>http://feedproxy.google.com/~r/btmup_blog/~3/cCEVtm0z9Vw/dreamweaver-template-outside-editable-regions-attribute-value.html</link>
		<comments>http://blog.btmup.com/web-general/dreamweaver-template-outside-editable-regions-attribute-value.html#comments</comments>
		<pubDate>Wed, 01 Sep 2010 12:04:04 +0000</pubDate>
		<dc:creator>kbysbtmup</dc:creator>
				<category><![CDATA[Web制作全般]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[テンプレート]]></category>
		<category><![CDATA[ネスト]]></category>
		<category><![CDATA[属性]]></category>
		<category><![CDATA[入れ子]]></category>

		<guid isPermaLink="false">http://blog.btmup.com/?p=1344</guid>
		<description><![CDATA[
いっっっっっつも「どこだっけなーーー」ってなるので、メモ。
Dreamweaver のテンプレートを適用したページは、テンプレートの方で設定した「編集可能領域」の中身しか編集できません。
でも、例えば「body 要素に [...]]]></description>
			<content:encoded><![CDATA[
<p>いっっっっっつも「どこだっけなーーー」ってなるので、メモ。</p>
<p>Dreamweaver のテンプレートを適用したページは、テンプレートの方で設定した「編集可能領域」の中身しか編集できません。<br />
でも、例えば「<strong>body 要素に id を設定して、ページごとやカテゴリーごとに変えたい</strong>」なんてこともよくある話で、じゃあそのために編集可能領域の範囲を広げたり新たに追加したりするのも面倒ってもの。<br />
そんなときは、<strong>特定の要素の属性を各ページで変更できるようにテンプレートで設定</strong>できます。</p>
<p>というワケでその手順。</p>
<p>（ちなみに、バージョンは CS4 です）</p>
<p><span id="more-1344"></span></p>
<h3>テンプレートを設定</h3>
<p>body 要素の id 属性を変更できるようにした場合。</p>
<ol>
<li>テンプレート（.dwt）を開き、body 要素に id 属性を設定する。</li>
<li>body 要素にカーソルを合わせた状態で、<strong>［修正］−［テンプレート］−［属性を編集可能にする&#8230;］</strong>を選択する。<br />
<img src="http://blog.btmup.com/wp-content/uploads/2010/09/Dw_zokusei_menu.jpg" alt="" title="Dreamweaverのメニュー ［修正］−［テンプレート］−［属性を編集可能にする...］" width="520" height="325" class="alignnone size-full wp-image-1347" /><br />
（メニュー自体がグレーアウトしてる場合があるんですけど、何が原因かよく分かってません……。編集可能領域を設定したら直ったりしますが……）</li>
<li><strong>「属性を編集可能にする」</strong>のチェックを入れ、ラベル（例：bodyID）と初期設定の値（例：index）を入力する。属性は「ID」、タイプは「テキスト」を選択しておく。<br />
<img src="http://blog.btmup.com/wp-content/uploads/2010/09/Dw_zokusei_dialog.jpg" alt="" title="Dreamweaverのダイアログ 「編集可能なタグ属性」" width="484" height="323" class="alignnone size-full wp-image-1353" /></li>
<li>&lt;/head&gt;の前に「&lt;!&#8211; TemplateParam name=&#8221;bodyID&#8221; type=&#8221;text&#8221; value=&#8221;index&#8221; &#8211;&gt;」が挿入され、body 要素の id 属性値が「@@(bodyID)@@」になっていれば成功。</li>
</ol>
<p>属性は id じゃなくても class などが（たぶん src とか href とかでも）設定可能。<br />
タイプも、その属性に合わせて選ぶのが良さげです。<br />
（僕は今まで id くらいしか使ったことがないので詳細は分かりませんが）</p>
<h3>各ページで属性値を変更</h3>
<ol>
<li>ページのファイル（.html）を開き、<strong>［修正］−［テンプレートプロパティ&#8230;］</strong>を選択する。<br />
<img src="http://blog.btmup.com/wp-content/uploads/2010/09/Dw_zokusei_edit_menu.jpg" alt="" title="Dreamweaverのメニュー ［修正］−［テンプレートプロパティ...］" width="260" height="150" class="alignnone size-full wp-image-1349" /></li>
<li>設定したラベルを選択して、その値を入力する。<br />
<img src="http://blog.btmup.com/wp-content/uploads/2010/09/Dw_zokusei_edit_dialog.jpg" alt="" title="Dreamweaverのダイアログ 「テンプレートのプロパティ」" width="500" height="426" class="alignnone size-full wp-image-1351" /></li>
<li>&lt;/head&gt;の前にある「&lt;!&#8211; InstanceParam name=&#8221;bodyID&#8221; type=&#8221;text&#8221; value=&#8221;index&#8221; &#8211;&gt;」の value の値が入力した内容に変化すれば成功。</li>
</ol>
<p>当然のことながら、ソースを直接いじっても変化しません。<br />
必ずメニューから操作しましょう。</p>
<p>尚、この機能はネストされたテンプレートでも有効です。<br />
つまり、サイト共通のテンプレートと、カテゴリーごとにテンプレートを作成していた場合、共通テンプレートで上記設定をしておけば、カテゴリーごとのテンプレートで body 要素の id 属性値を変更することができ、それをベースにページのファイルを作ることができます。</p>
<p>逆に、<strong>ネストされたテンプレートを適用していても、ページごとに属性値を変更したい場合</strong>もあると思います。<br />
そんなときは、ネストされた（ここの例ではカテゴリーごとの）テンプレートを開いた状態で、「属性値を変更」の手順で選択した<strong>［修正］−［テンプレートプロパティ&#8230;］</strong>のダイアログを開き、<strong>「ネストされたテンプレートによる制御を許可」</strong>のチェックを入れてください。<br />
<img src="http://blog.btmup.com/wp-content/uploads/2010/09/Dw_zokusei_edit_dialog_nest.jpg" alt="" title="Dreamweaverのダイアログ 「テンプレートのプロパティ」の「ネストされたテンプレートによる制御を許可」のチェック部分" width="500" height="425" class="alignnone size-full wp-image-1354" /><br />
&lt;/head&gt;の前のタグが「&lt;!&#8211; InstanceParam name=&#8221;bodyID&#8221; type=&#8221;text&#8221; value=&#8221;index&#8221; passthrough=&#8221;true&#8221; &#8211;&gt;」になり、body 要素の id 属性値も「@@@(bodyID)@@@」になります。<br />
これで、ネストされたテンプレートをベースに作られたページでも、属性値を変更することができます。</p>


<p><a href="http://feedads.g.doubleclick.net/~a/JANgTO7T6B-_QriCa9w3gHJsSLM/0/da"><img src="http://feedads.g.doubleclick.net/~a/JANgTO7T6B-_QriCa9w3gHJsSLM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/JANgTO7T6B-_QriCa9w3gHJsSLM/1/da"><img src="http://feedads.g.doubleclick.net/~a/JANgTO7T6B-_QriCa9w3gHJsSLM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/btmup_blog/~4/cCEVtm0z9Vw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.btmup.com/web-general/dreamweaver-template-outside-editable-regions-attribute-value.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.btmup.com/web-general/dreamweaver-template-outside-editable-regions-attribute-value.html" />
	<feedburner:origLink>http://blog.btmup.com/web-general/dreamweaver-template-outside-editable-regions-attribute-value.html</feedburner:origLink></item>
		<item>
		<title>yuga.js で、外部リンクを別ウィンドウで開く機能を area 要素にも適用する方法。</title>
		<link>http://feedproxy.google.com/~r/btmup_blog/~3/akckm8ASBj4/yuga-js-new-window-area-element.html</link>
		<comments>http://blog.btmup.com/javascript/yuga-js-new-window-area-element.html#comments</comments>
		<pubDate>Mon, 30 Aug 2010 11:42:50 +0000</pubDate>
		<dc:creator>kbysbtmup</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[area]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[yuga.js]]></category>
		<category><![CDATA[クリッカブルマップ]]></category>
		<category><![CDATA[別ウィンドウ]]></category>

		<guid isPermaLink="false">http://blog.btmup.com/?p=1342</guid>
		<description><![CDATA[
小ネタです。
JavaScript が分かる人なら何の造作もないことなんですけど、分からなくて困ってる人が居るかも知れないので一応メモ。

設定方法
yuga.js の「外部リンクは別ウィンドウで開く」という機能は、デ [...]]]></description>
			<content:encoded><![CDATA[
<p>小ネタです。<br />
JavaScript が分かる人なら何の造作もないことなんですけど、分からなくて困ってる人が居るかも知れないので一応メモ。<br />
<span id="more-1342"></span></p>
<h3>設定方法</h3>
<p><a href="http://kyosuke.jp/yugajs/">yuga.js</a> の「外部リンクは別ウィンドウで開く」という機能は、デフォルトでは a 要素にのみ適用されます。<br />
その記述がされているのは、以下の箇所（バージョン 0.7.1 で 148 行目）。</p>
<pre><code>var e = $('a[href^="http://"]').not('a[href^="' + uri.schema + '://' + uri.host + '/' + '"]');</code></pre>
<p>つまり、「a 要素の href 属性に、先頭が http:// の文字列が設定されていたら」という条件になっているわけです。<br />
（ちなみに後半の「.not」以降は、URL が同じドメインだった場合、別ウィンドウで開く対象から外す、という処理（「ドメイン」って言っていいのかどうか分からないですけど））</p>
<p>なので、ここに条件を追加してやれば、a 要素以外でも別ウィンドウで開いてくれるようになるわけですね。<br />
結果として、以下のようになります。</p>
<pre><code>var e = $('a[href^="http://"], <strong style="color:#f00;">area[href^="http://"]</strong>').not('a[href^="' + uri.schema + '://' + uri.host + '/' + '"]');</code></pre>
<p>作業内容としては、コピペしてカンマでつないで「a」を「area」に書き替えるだけです。</p>
<p>仕組みとしては単純なので、必要に応じて色々対応できそうですね。</p>
<p>逆に、「異なるドメインへのリンクでも、別ウィンドウで開く対象から外したい」という場合は、別記事に書いてますのでそちらをご覧ください。<br />
<a href="http://blog.btmup.com/javascript/yuga-js-not-new-window-add-domain.html">&raquo;yuga.js で、別ウィンドウで開かないドメインを追加する方法。</a></p>
<p>小ネタでした&#xFF5E;。</p>


<p><a href="http://feedads.g.doubleclick.net/~a/YGHLdsg0xrhfQs00xb2UKoytoOU/0/da"><img src="http://feedads.g.doubleclick.net/~a/YGHLdsg0xrhfQs00xb2UKoytoOU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/YGHLdsg0xrhfQs00xb2UKoytoOU/1/da"><img src="http://feedads.g.doubleclick.net/~a/YGHLdsg0xrhfQs00xb2UKoytoOU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/btmup_blog/~4/akckm8ASBj4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.btmup.com/javascript/yuga-js-new-window-area-element.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.btmup.com/javascript/yuga-js-new-window-area-element.html" />
	<feedburner:origLink>http://blog.btmup.com/javascript/yuga-js-new-window-area-element.html</feedburner:origLink></item>
		<item>
		<title>OpenOffice.org における、Microsoft Office の「ページ設定」にあたるメニューの在り処。</title>
		<link>http://feedproxy.google.com/~r/btmup_blog/~3/QjoNh8mLuRc/openoffice-org-microsoft-office-page-setup-menu.html</link>
		<comments>http://blog.btmup.com/outside-web/openoffice-org-microsoft-office-page-setup-menu.html#comments</comments>
		<pubDate>Thu, 26 Aug 2010 05:43:53 +0000</pubDate>
		<dc:creator>kbysbtmup</dc:creator>
				<category><![CDATA[Web以外]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[OOo]]></category>
		<category><![CDATA[OpenOffice.org]]></category>
		<category><![CDATA[オフィス]]></category>
		<category><![CDATA[ページ設定]]></category>
		<category><![CDATA[印刷]]></category>

		<guid isPermaLink="false">http://blog.btmup.com/?p=1334</guid>
		<description><![CDATA[
「Microsoft Office（以下、オフィス）」と互換性のあるオープンソースのオフィススイート「OpenOffice.org（以下、OOo）」。
大変便利なのでよく使っているのですが、オフィスとはビミョーに操作方 [...]]]></description>
			<content:encoded><![CDATA[
<p>「Microsoft Office（以下、オフィス）」と互換性のあるオープンソースのオフィススイート「<a href="http://ja.openoffice.org/">OpenOffice.org</a>（以下、OOo）」。<br />
大変便利なのでよく使っているのですが、オフィスとはビミョーに操作方法が違っていたりして、たまに（多々？）イラッとさせられることがあります。<br />
今回もそんな感じの発見を一つご紹介。</p>
<p>Mac での操作方法を書いてるので、Windows の方は（もし何か違っていたら）適宜似た感じの項目で読み替えてください。<br />
あと、使ってるバージョンは 3.2.0 です。<br />
（最新版は 3.2.1 が出てるようですが、まぁ大きく変わってることはないはず）<br />
<span id="more-1334"></span></p>
<h3>［ページ設定］は何処に？</h3>
<p>印刷するときの余白を設定したり、ヘッダーやフッターを設定したりするとき、<strong>オフィスは［ファイル］−［ページ設定］</strong>というメニューを使います。<br />
ところが、<strong>OOo の［ファイル］に［ページ設定］は存在しません</strong>。<br />
［ファイル］−［プリンタの設定］にも、［OpenOffice.org］−［設定］にも、期待する項目は出てこないのです。</p>
<p>じゃあどこにあるのかというと、<strong>［書式］−［ページ］</strong>です。<br />
<img src="http://blog.btmup.com/wp-content/uploads/2010/08/OOo_menu_page.jpg" alt="" title="OOo Calc の［書式］−［ページ］メニュー" width="270" height="260" class="alignnone size-full wp-image-1339" /></p>
<p>オフィスと比べると、項目の種類や名前が違っていたりしますが、概ね同じことができるはずです。</p>
<p>例えば、用紙のサイズや余白、縦向き／横向きの設定。<br />
<img src="http://blog.btmup.com/wp-content/uploads/2010/08/OOo_dialog_page01.jpg" alt="" title="OOo Calc の［書式］−［ページ］メニューの［ページ］タブ" width="520" height="480" class="alignnone size-full wp-image-1340" /></p>
<p>あと、拡大縮小の設定（倍率を入力したり、印刷するページ数に合わせて自動的に倍率を調整したり）も。<br />
<img src="http://blog.btmup.com/wp-content/uploads/2010/08/OOo_dialog_page02.jpg" alt="" title="OOo Calc の［書式］−［ページ］メニューの［シート］タブ" width="520" height="480" class="alignnone size-full wp-image-1341" /></p>
<p>ここでは「Calc（「Excel」に相当）」を例に挙げましたが、「Writer（「Word」に相当）」や「Impress（「PowerPoint」に相当）」も［書式］−［ページ］からオフィスの［ページ設定］と同じような操作ができます。</p>
<p>知ってたら何てことないことなんですけどね。<br />
よく使うところなので、もうちょっと直感的に分かるようにしてもらえたらなぁ、なんて思います。<br />
ツールバーのボタンにデフォルトで入ってても良いと思うんですけど。</p>


<p><a href="http://feedads.g.doubleclick.net/~a/EDjypEqbouqu_IwnF_qr18JmhqQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/EDjypEqbouqu_IwnF_qr18JmhqQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/EDjypEqbouqu_IwnF_qr18JmhqQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/EDjypEqbouqu_IwnF_qr18JmhqQ/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/btmup_blog/~4/QjoNh8mLuRc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.btmup.com/outside-web/openoffice-org-microsoft-office-page-setup-menu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.btmup.com/outside-web/openoffice-org-microsoft-office-page-setup-menu.html" />
	<feedburner:origLink>http://blog.btmup.com/outside-web/openoffice-org-microsoft-office-page-setup-menu.html</feedburner:origLink></item>
		<item>
		<title>Google Analytics で「ページタイトル」を強制的に表示させる方法。</title>
		<link>http://feedproxy.google.com/~r/btmup_blog/~3/_e_zaAdVtv8/google-analytics-page-title.html</link>
		<comments>http://blog.btmup.com/access-analysis/google-analytics-page-title.html#comments</comments>
		<pubDate>Fri, 30 Jul 2010 07:30:40 +0000</pubDate>
		<dc:creator>kbysbtmup</dc:creator>
				<category><![CDATA[アクセス解析]]></category>

		<guid isPermaLink="false">http://blog.btmup.com/?p=1332</guid>
		<description><![CDATA[
これはかなり便利なのでメモ的にサラッとご紹介。
Google Analytics でレポートを見ているとき、「URL だけじゃ分かりづらいなぁ。タイトルも表示されないかなぁ」と常々思っていたワケです。
（「タイトル別の [...]]]></description>
			<content:encoded><![CDATA[
<p>これはかなり便利なのでメモ的にサラッとご紹介。</p>
<p>Google Analytics でレポートを見ているとき、「<strong>URL だけじゃ分かりづらいなぁ。タイトルも表示されないかなぁ</strong>」と常々思っていたワケです。<br />
（「タイトル別のコンテンツ」では表示されるんですけどね。というか、それでしか表示されない）</p>
<p>が、URL にパラメータを直接（ムリヤリ?）追加してやることで、ページタイトルを URL と一緒に表示させることが出来るんだそうで。</p>
<p>方法としては、「上位のコンテンツ」などを表示しているとき、<strong>URL の「ID=XXXXXXXX」の後に「&#038;segkey=request_uri|page_title」を挿入する</strong>だけ。<br />
なぜかこの位置以外に挿入しても画面が切り替わってくれませんでした。<br />
順番なんて関係あるんですかね。不思議。</p>
<p>「上位のコンテンツ」以外にも、「コンテンツの詳細」とか「閲覧開始ページ」とか、あるいは「トラフィック」の方の「キーワード」とかでも表示することができました。<br />
ただ、若干動作がおかしくなる場合もあるので、現時点ではあくまで「参考データ」くらいに考えておいた方が良いのかも知れません。<br />
（だからまだ標準では表示できないようにしてるのかな）</p>
<p>元記事はこちら↓。<br />
<a href="http://www.suzukikenichi.com/blog/how-to-show-url-and-page-title-in-google-analytics/">&raquo;Google AnalyticsでURLとページタイトルを同時に表示させる方法 | 海外SEO情報ブログ・メルマガ</a></p>


<p><a href="http://feedads.g.doubleclick.net/~a/rnKZktVHj8nwbc_nU3lx912LYb8/0/da"><img src="http://feedads.g.doubleclick.net/~a/rnKZktVHj8nwbc_nU3lx912LYb8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/rnKZktVHj8nwbc_nU3lx912LYb8/1/da"><img src="http://feedads.g.doubleclick.net/~a/rnKZktVHj8nwbc_nU3lx912LYb8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/btmup_blog/~4/_e_zaAdVtv8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.btmup.com/access-analysis/google-analytics-page-title.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.btmup.com/access-analysis/google-analytics-page-title.html" />
	<feedburner:origLink>http://blog.btmup.com/access-analysis/google-analytics-page-title.html</feedburner:origLink></item>
		<item>
		<title>Webサイト制作でよく出てくるコンテンツとそれによく使うディレクトリ・ファイル名の一覧</title>
		<link>http://feedproxy.google.com/~r/btmup_blog/~3/z60Hl57NoZo/contents-directory-file-name-list.html</link>
		<comments>http://blog.btmup.com/web-general/contents-directory-file-name-list.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 12:41:21 +0000</pubDate>
		<dc:creator>kbysbtmup</dc:creator>
				<category><![CDATA[Web制作全般]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[ディレクトリ]]></category>

		<guid isPermaLink="false">http://blog.btmup.com/?p=1330</guid>
		<description><![CDATA[
ディレクトリ名とかファイル名って、ちゃんとしようとすると意外に時間がかかるもの。
ページタイトルを直訳すれば良いってもんでもなく、いくつかある候補から内容に一番合った単語を見付けてこないといけない。
いちいち英語を調べ [...]]]></description>
			<content:encoded><![CDATA[
<p>ディレクトリ名とかファイル名って、ちゃんとしようとすると意外に時間がかかるもの。<br />
ページタイトルを直訳すれば良いってもんでもなく、いくつかある候補から内容に一番合った単語を見付けてこないといけない。<br />
いちいち英語を調べるのもメンドいし、かといって「gaiyo」とかじゃ気持ち悪いし、どうしたもんかねー、とずっと思っていました。</p>
<p>で、今回、勢いでざっくりとまとめてみたのでついでに公開します。<br />
本当にざっくりなので抜けもあるだろうし「それくらい書かんでも分かるわボケ」なものもあるでしょうけど、まぁそれは追々。<br />
ディレクトリ名やファイル名として使用することを前提としているので、文法とかは全く考慮してませんので悪しからず。</p>
<p>最近、医療・病院関係のサイトに仕事で関わることが多いので、後半はほとんどそれ関係です。</p>
<p>あと、英訳／和訳をするときにいつも利用させてもらってるのは「<a href="http://www.alc.co.jp/">スペースアルク</a>」さんです。<br />
単語そのものの訳はもちろん、例文も豊富で非常に分かりやすいのです。<br />
いつも頼りにしてますよ。あざーす。<br />
<span id="more-1330"></span></p>
<table summary="Webサイト制作でよく出てくるコンテンツ内容とそれによく使うディレクトリ・ファイル名の一覧の表">
<thead>
<tr>
<th>コンテンツ名</th>
<th>ディレクトリ名・ファイル名</th>
</tr>
</thead>
<tbody>
<tr>
<th>○○について、○○のご案内</th>
<td>about</td>
</tr>
<tr>
<th>概要</th>
<td>outline、summary、overview</td>
</tr>
<tr>
<th>要約、要旨</th>
<td>summary、overview</td>
</tr>
<tr>
<th>沿革、歴史、○○の歩み</th>
<td>history</td>
</tr>
<tr>
<th>挨拶、あいさつ</th>
<td>greeting、message</td>
</tr>
<tr>
<th>創設者、創立者</th>
<td>founder</td>
</tr>
<tr>
<th>理念</th>
<td>philosophy</td>
</tr>
<tr>
<th>プロフィール、経歴、略歴</th>
<td>profile</td>
</tr>
<tr>
<th>経歴、素性</th>
<td>background</td>
</tr>
<tr>
<th>会社、企業</th>
<td>company</td>
</tr>
<tr>
<th>法人の、企業の</th>
<td>corporate</td>
</tr>
<tr>
<th>事業内容</th>
<td>business</td>
</tr>
<tr>
<th>特徴、特長、特色、特性</th>
<td>feature</td>
</tr>
<tr>
<th>専門、特殊性、特徴、特色</th>
<td>specialty</td>
</tr>
<tr>
<th>実績、業績</th>
<td>results、performance</td>
</tr>
<tr>
<th>作品</th>
<td>work(s)、creation、output</td>
</tr>
<tr>
<th>（作品の）展示場、披露する場</th>
<td>showcase</td>
</tr>
<tr>
<th>事例、実例</th>
<td>case(s)、example(s)</td>
</tr>
<tr>
<th>商品</th>
<td>commodity（サービスとの対比）、commodities、article(s)、merchandise、commercial-goods、commercial-product(s)</td>
</tr>
<tr>
<th>製品</th>
<td>product、manufacture、finished-product(s)（、FP）</td>
</tr>
<tr>
<th>技術</th>
<td>technology、craft（美術や工芸の）、art（ある特定の分野の）</td>
</tr>
<tr>
<th>採用情報、求人情報</th>
<td>recruit</td>
</tr>
<tr>
<th>キャリアアップ</th>
<td>improving-career、develop-career</td>
</tr>
<tr>
<th>（今後の、これからの）キャリア、経歴、職歴</th>
<td>career</td>
</tr>
<tr>
<th>キャリアパス</th>
<td>career-path、track</td>
</tr>
<tr>
<th>カリキュラム、教育課程</th>
<td>curriculum</td>
</tr>
<tr>
<th>研修、教育、育成、トレーニング</th>
<td>training</td>
</tr>
<tr>
<th>研修生、研修医、訓練生、練習生、見習い、トレーニー</th>
<td>trainee</td>
</tr>
<tr>
<th>訓練者、指導者、調教師、トレーナー、コーチ</th>
<td>trainer</td>
</tr>
<tr>
<th>教育</th>
<td>education</td>
</tr>
<tr>
<th>レッスン、授業、教室</th>
<td>lesson</td>
</tr>
<tr>
<th>授業、科目、学級</th>
<td>class</td>
</tr>
<tr>
<th>資格、免許</th>
<td>qualifications</td>
</tr>
<tr>
<th>免許</th>
<td>license、qualifications</td>
</tr>
<tr>
<th>インターンシップ、実務研修、就業体験</th>
<td>internship</td>
</tr>
<tr>
<th>スタッフ、職員</th>
<td>staff</td>
</tr>
<tr>
<th>会員、構成員、メンバー</th>
<td>member</td>
</tr>
<tr>
<th>交通、アクセス</th>
<td>access</td>
</tr>
<tr>
<th>地図、案内図</th>
<td>map</td>
</tr>
<tr>
<th>FAQ、よくある質問</th>
<td>faq、frequently-asked-question</td>
</tr>
<tr>
<th>問い合わせ</th>
<td>contact、inquiry</td>
</tr>
<tr>
<th>予約</th>
<td>reservation、booking</td>
</tr>
<tr>
<th>案内、ご案内</th>
<td>guide</td>
</tr>
<tr>
<th>方針</th>
<td>policy</td>
</tr>
<tr>
<th>プライバシーポリシー、個人情報保護方針、個人情報の取り扱い</th>
<td>privacy、privacy-policy</td>
</tr>
<tr>
<th>免責事項、免責条項</th>
<td>disclaimer</td>
</tr>
<tr>
<th>免疫、免責、免除</th>
<td>immunity</td>
</tr>
<tr>
<th>条項、条件</th>
<td>terms、condition、provision</td>
</tr>
<tr>
<th>担当、担当者</th>
<td>charge</td>
</tr>
<tr>
<th>（担当者としての）責任者</th>
<td>charge</td>
</tr>
<tr>
<th>（管理者としての）責任者</th>
<td>manager、curator、chief</td>
</tr>
<tr>
<th>手続き</th>
<td>procedure</td>
</tr>
<tr>
<th>部門、分社、支店</th>
<td>branch</td>
</tr>
<tr>
<th>部署、事業部、学部、学科、診療科</th>
<td>department</td>
</tr>
<tr>
<th>区分、区域、部、課、係</th>
<td>section</td>
</tr>
<tr>
<th>トピックス</th>
<td>topics</td>
</tr>
<tr>
<th>ニュース、新着情報</th>
<td>news</td>
</tr>
<tr>
<th>お知らせ</th>
<td>information、info</td>
</tr>
<tr>
<th>更新情報</th>
<td>update、whats-new</td>
</tr>
<tr>
<th>広報、会報、ニュースレター、○○通信（社内報のようなもの）</th>
<td>newsletter、publication</td>
</tr>
<tr>
<th>リンク集</th>
<td>link(s)</td>
</tr>
<tr>
<th>サイトマップ</th>
<td>sitemap</td>
</tr>
<tr>
<th>地域（社会）、コミュニティ</th>
<td>community</td>
</tr>
<tr>
<th>場所、位置、配置、所在地、ロケーション</th>
<td>location</td>
</tr>
<tr>
<th>場所、敷地、用地、会場、現場</th>
<td>site</td>
</tr>
<tr>
<th>地域、地方、地区、場所、領域、分野</th>
<td>area</td>
</tr>
<tr>
<th>地方｛ちほう｝の、地域｛ちいき｝の</th>
<td>regional</td>
</tr>
<tr>
<th>領域</th>
<td>field、area、scene、scope</td>
</tr>
<tr>
<th>場、場面、状況、○○風景、シーン</th>
<td>scene</td>
</tr>
<tr>
<th>職場、仕事場</th>
<td>place、site、workplace、worksite</td>
</tr>
<tr>
<th>住所、宛名、アドレス</th>
<td>address</td>
</tr>
<tr>
<th>サポート、支援</th>
<td>support</td>
</tr>
<tr>
<th>管理、経営</th>
<td>management</td>
</tr>
<tr>
<th>管理、監督、運営</th>
<td>direction</td>
</tr>
<tr>
<th>社長</th>
<td>president、pres、principal</td>
</tr>
<tr>
<th>○○長（施設のトップ：センター長 等）</th>
<td>director、chief</td>
</tr>
<tr>
<th>社会、社会的、社交</th>
<td>social</td>
</tr>
<tr>
<th>安全</th>
<td>safety、security</td>
</tr>
<tr>
<th>安心</th>
<td>reassurance、security</td>
</tr>
<tr>
<th>安全（性）、安心（感）、保障、警備、防衛、セキュリティ</th>
<td>security</td>
</tr>
<tr>
<th>約束</th>
<td>promise、commitment</td>
</tr>
<tr>
<th>契約、誓約</th>
<td>agreement、contract、deal、promise</td>
</tr>
<tr>
<th>紹介</th>
<td>introduce</td>
</tr>
<tr>
<th>相談</th>
<td>counseling、consultation、advisement</td>
</tr>
<tr>
<th>相談室</th>
<td>counseling-room、support-desk</td>
</tr>
<tr>
<th>外部、社外、院外、野外</th>
<td>outside</td>
</tr>
<tr>
<th>内部、社内、院内、屋内</th>
<td>inside</td>
</tr>
<tr>
<th>流れ</th>
<td>flow</td>
</tr>
<tr>
<th>順序</th>
<td>flow、order、sequence</td>
</tr>
<tr>
<th>項目、事項、品目、細目</th>
<td>item</td>
</tr>
<tr>
<th>ルール、規則、規定、規約</th>
<td>rule</td>
</tr>
<tr>
<th>規約、規則、内規、会則</th>
<td>byelaw</td>
</tr>
<tr>
<th>参加、加入、参画</th>
<td>participation</td>
</tr>
<tr>
<th>コーディネーター、取り纏め役</th>
<td>coordinator</td>
</tr>
<tr>
<th>コーディネート</th>
<td>coordinate、coord</td>
</tr>
<tr>
<th>委員会、委員</th>
<td>committee</td>
</tr>
<tr>
<th>学会</th>
<td>conference、community、academy、meeting、society</td>
</tr>
<tr>
<th>発表、提示、提出、プレゼンテーション</th>
<td>presentation</td>
</tr>
<tr>
<th>発表、告知、予告、お知らせ</th>
<td>announcement</td>
</tr>
<tr>
<th>講演、講義</th>
<td>lecture</td>
</tr>
<tr>
<th>講演会</th>
<td>lecture-meeting、lecture-presentation</td>
</tr>
<tr>
<th>論文</th>
<td>thesis、article、dissertation</td>
</tr>
<tr>
<th>ダウンロード</th>
<td>download</td>
</tr>
<tr>
<th>状況、状態、形勢</th>
<td>state</td>
</tr>
<tr>
<th>プログラム、計画</th>
<td>program</td>
</tr>
<tr>
<th>スケジュール</th>
<td>schedule</td>
</tr>
<tr>
<th>活動（の状況）、取組み</th>
<td>activity</td>
</tr>
<tr>
<th>設備</th>
<td>equipment</td>
</tr>
<tr>
<th>装置</th>
<td>equipment、device、apparatus、gismo</td>
</tr>
<tr>
<th>機器</th>
<td>equipment、device、instrument</td>
</tr>
<tr>
<th>素材、原料、材料</th>
<td>material</td>
</tr>
<tr>
<th>施設、機関、建物</th>
<td>establishment</td>
</tr>
<tr>
<th>公衆、公共、公開</th>
<td>public</td>
</tr>
<tr>
<th>料金、価格</th>
<td>price</td>
</tr>
<tr>
<th>費用</th>
<td>cost</td>
</tr>
<tr>
<th>予防、防止</th>
<td>prevention</td>
</tr>
<tr>
<th>レシピ、料理（調理）法</th>
<td>recipe</td>
</tr>
<tr>
<th>食事</th>
<td>meal、diet、dinner、menu</td>
</tr>
<tr>
<th>食べ物、食品、食物</th>
<td>food、meal、diet</td>
</tr>
<tr>
<th>メニュー（献立）</th>
<td>menu</td>
</tr>
<tr>
<th>入札</th>
<td>bid</td>
</tr>
<tr>
<th>寄付</th>
<td>contribution、donation</td>
</tr>
<tr>
<th>内科</th>
<td>internal</td>
</tr>
<tr>
<th>外科</th>
<td>surgery</td>
</tr>
<tr>
<th>呼吸器科、呼吸器の</th>
<td>respiratory</td>
</tr>
<tr>
<th>整形外科</th>
<td>orthopedics</td>
</tr>
<tr>
<th>産婦人科</th>
<td>obstetrics-and-gynaecology、oandg</td>
</tr>
<tr>
<th>産科</th>
<td>obstetrics</td>
</tr>
<tr>
<th>婦人科</th>
<td>gynaecology</td>
</tr>
<tr>
<th>泌尿器科</th>
<td>urology</td>
</tr>
<tr>
<th>耳鼻咽喉科</th>
<td>otolaryngology</td>
</tr>
<tr>
<th>脳神経外科、神経外科</th>
<td>neurosurgery</td>
</tr>
<tr>
<th>小児科</th>
<td>pediatrics</td>
</tr>
<tr>
<th>眼科</th>
<td>ophthalmology</td>
</tr>
<tr>
<th>皮膚科</th>
<td>dermatology</td>
</tr>
<tr>
<th>形成外科、美容整形外科、美容外科</th>
<td>plastic-surgery</td>
</tr>
<tr>
<th>美容整形外科、美容外科</th>
<td>cosmetic-surgery、plastic-surgery、esthetic-surgery</td>
</tr>
<tr>
<th>放射線科、放射線学</th>
<td>radiology</td>
</tr>
<tr>
<th>心療内科</th>
<td>psychosomatic-medicine、psychosomatic-internal-medicine、psychosomatic</td>
</tr>
<tr>
<th>精神科</th>
<td>psychiatry</td>
</tr>
<tr>
<th>消化器系</th>
<td>digestive、digestive-system</td>
</tr>
<tr>
<th>胃腸の</th>
<td>gastrointestinal</td>
</tr>
<tr>
<th>循環器系</th>
<td>cardiovascular、circulatory</td>
</tr>
<tr>
<th>病棟</th>
<td>ward</td>
</tr>
<tr>
<th>患者の権利</th>
<td>right、patient-right</td>
</tr>
<tr>
<th>（病院機能）評価</th>
<td>valuation</td>
</tr>
<tr>
<th>病気</th>
<td>ailment、complaint、sickness、bodily-ills、disease、malady、condition</td>
</tr>
<tr>
<th>疾病</th>
<td>bodily-ills、disease、malady</td>
</tr>
<tr>
<th>疾患</th>
<td>bodily-ills、disease、malady、condition</td>
</tr>
<tr>
<th>治療、治癒</th>
<td>cure、healing、therapy</td>
</tr>
<tr>
<th>予防接種</th>
<td>inoculation、vaccination、preventive-inoculation、preventive-vaccination、protective-inoculation、protective-vaccination</td>
</tr>
<tr>
<th>健康診断、健診、検診、検査、点検</th>
<td>check、checkup</td>
</tr>
<tr>
<th>検査</th>
<td>check、checkup、examination、test、survey、inspection</td>
</tr>
<tr>
<th>調査</th>
<td>check、examination、research、inspection、survey</td>
</tr>
<tr>
<th>人間ドック</th>
<td>general-checkup、thorough-checkup、complete-medical-checkup、health-screening、ningen-dock、human-dock</td>
</tr>
<tr>
<th>外来患者</th>
<td>outpatient</td>
</tr>
<tr>
<th>入院患者</th>
<td>inpatient</td>
</tr>
<tr>
<th>入院、入学、入会、入場</th>
<td>admission</td>
</tr>
<tr>
<th>患者</th>
<td>patient</td>
</tr>
<tr>
<th>処方箋、処方薬</th>
<td>prescription</td>
</tr>
<tr>
<th>診療所、診療室、外来</th>
<td>clinic</td>
</tr>
<tr>
<th>病院</th>
<td>hospital</td>
</tr>
<tr>
<th>医師</th>
<td>doctor(s)</td>
</tr>
<tr>
<th>コメディカル、コ・メディカル</th>
<td>co-medical、comedical</td>
</tr>
<tr>
<th>緩和ケア</th>
<td>palliative-care</td>
</tr>
<tr>
<th>がん、癌</th>
<td>cancer</td>
</tr>
<tr>
<th>リハビリテーション、リハビリ</th>
<td>rehabilitation</td>
</tr>
<tr>
<th>リウマチ</th>
<td>rheumatism</td>
</tr>
<tr>
<th>麻酔</th>
<td>anesthesia</td>
</tr>
<tr>
<th>救急、緊急、非常時</th>
<td>emergency</td>
</tr>
<tr>
<th>救急外来</th>
<td>emergency-visit</td>
</tr>
<tr>
<th>二次救急</th>
<td>advanced-emergency</td>
</tr>
<tr>
<th>二次救急医療機関、二次救急病院</th>
<td>advanced-emergency-hospital、advanced-emergency-medical-center</td>
</tr>
<tr>
<th>病理学、病理</th>
<td>pathology</td>
</tr>
<tr>
<th>血液浄化</th>
<td>hemocatharsis</td>
</tr>
<tr>
<th>栄養、栄養素、栄養学</th>
<td>nutrition</td>
</tr>
<tr>
<th>工学、エンジニアリグ</th>
<td>engineering</td>
</tr>
<tr>
<th>内視鏡</th>
<td>endoscope、endoscopic-instrument</td>
</tr>
<tr>
<th>腹腔鏡</th>
<td>abdominoscope、celioscope、laparoscope、peritoneoscope</td>
</tr>
<tr>
<th>CT（コンピュータ断層撮影）</th>
<td>ct、computed-tomography</td>
</tr>
<tr>
<th>MRI（核磁気共鳴画像法）</th>
<td>mri、magnetic-resonance-imaging</td>
</tr>
<tr>
<th>透析</th>
<td>dialysis</td>
</tr>
<tr>
<th>人工透析</th>
<td>artificial-dialysis</td>
</tr>
<tr>
<th>看護部、看護師</th>
<td>nurse</td>
</tr>
<tr>
<th>看護助手</th>
<td>aide、assistant-nurse</td>
</tr>
<tr>
<th>薬学、薬剤学、調剤学、薬局</th>
<td>pharmacy</td>
</tr>
<tr>
<th>救護、援助、救済</th>
<td>aid</td>
</tr>
<tr>
<th>ボランティア</th>
<td>volunteer</td>
</tr>
<tr>
<th>臨床研修</th>
<td>clinical-training</td>
</tr>
<tr>
<th>研修医</th>
<td>resident、trainee-doctor、houseman</td>
</tr>
<tr>
<th>保健、健康</th>
<td>health</td>
</tr>
<tr>
<th>保健指導</th>
<td>health-guidance、health-direction</td>
</tr>
<tr>
<th>マタニティ、産科、母性</th>
<td>maternity</td>
</tr>
<tr>
<th>出産</th>
<td>birthing、birth</td>
</tr>
<tr>
<th>助産師</th>
<td>midwife</td>
</tr>
<tr>
<th>乳幼児</th>
<td>infant(s)、infant-and-toddler</td>
</tr>
<tr>
<th>育児、子育て</th>
<td>child-rearing、child-raising、（parentingがよく使われるが厳密には語弊あり）</td>
</tr>
<tr>
<th>育児、保育</th>
<td>childcare</td>
</tr>
<tr>
<th>育成、養育、子育て</th>
<td>nurturing</td>
</tr>
<tr>
<th>しつけ、親業</th>
<td>parenting</td>
</tr>
<tr>
<th>治験</th>
<td>clinical-trial</td>
</tr>
<tr>
<th>セカンドオピニオン、セカンド・オピニオン</th>
<td>second-opinion</td>
</tr>
<tr>
<th>糖尿病の、糖尿病患者</th>
<td>diabetic</td>
</tr>
<tr>
<th>（吸っている人が吸うのを止める）禁煙</th>
<td>smoking-cessation、quit-smoking、smoking-abstinence、stopping-smoking</td>
</tr>
<tr>
<th>（特定の場所や時間を指して禁止する）禁煙</th>
<td>no-smoking</td>
</tr>
<tr>
<th>物忘れ、もの忘れ、健忘</th>
<td>forgetfulness、memory-loss</td>
</tr>
<tr>
<th>訪問看護</th>
<td>home-visit、visiting</td>
</tr>
</tbody>
</table>
<p>思い付いたら追加・修正していきます。<br />
「これも入れた方が良いよー」というのがあれば、コメント欄にでも放り込んでください。</p>


<p><a href="http://feedads.g.doubleclick.net/~a/3UEEyeVifgUZ8GhGujhBj4_TZY4/0/da"><img src="http://feedads.g.doubleclick.net/~a/3UEEyeVifgUZ8GhGujhBj4_TZY4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/3UEEyeVifgUZ8GhGujhBj4_TZY4/1/da"><img src="http://feedads.g.doubleclick.net/~a/3UEEyeVifgUZ8GhGujhBj4_TZY4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/btmup_blog/~4/z60Hl57NoZo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.btmup.com/web-general/contents-directory-file-name-list.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.btmup.com/web-general/contents-directory-file-name-list.html" />
	<feedburner:origLink>http://blog.btmup.com/web-general/contents-directory-file-name-list.html</feedburner:origLink></item>
		<item>
		<title>Firefox で特定のページの特定の箇所から特定のページにリンクしたとき「一部だけ暗号化されていない」という状態になる</title>
		<link>http://feedproxy.google.com/~r/btmup_blog/~3/fI81xl-3-jY/firefox-some-are-not-only-encrypted.html</link>
		<comments>http://blog.btmup.com/firefox/firefox-some-are-not-only-encrypted.html#comments</comments>
		<pubDate>Fri, 02 Jul 2010 01:18:08 +0000</pubDate>
		<dc:creator>kbysbtmup</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Web制作全般]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[セキュリティ]]></category>
		<category><![CDATA[リダイレクト]]></category>
		<category><![CDATA[暗号化]]></category>

		<guid isPermaLink="false">http://blog.btmup.com/?p=1328</guid>
		<description><![CDATA[
何かよく分からない事象にハマってます。
もし原因や解決法などをご存知の方が居ればぜひ情報を……。

同一ドメインにおいて（仮に「http://www.hoge.jp/」とします）
Firefox で保護されていない特定 [...]]]></description>
			<content:encoded><![CDATA[
<p>何かよく分からない事象にハマってます。<br />
もし原因や解決法などをご存知の方が居ればぜひ情報を……。</p>
<ul>
<li>同一ドメインにおいて（仮に「http://www.hoge.jp/」とします）</li>
<li>Firefox で保護されていない特定のページ（「http://www.hoge.jp/〜」）から保護されている特定のページ（「https://www.hoge.jp/〜」）へリンクしたとき</li>
<li>「一部しか暗号化されていない」という状態になる</li>
<li>そのページをリロードすると、その事象は解消される（すべて保護されている状態になる）</li>
<li>同じリンク元ページの別の箇所から、まったく同じ URL にリンクしても、上記のような事象は発生しない（すべて保護されている状態になっている）</li>
<li>リンク先 URL を直接入力したり、他のページからリンクしても、やっぱり事象は発生しない</li>
<li>つまり、特定のページの特定の箇所にあるリンクでのみ、事象が発生している（再現性あり）</li>
<li>IE、Safari、Google Chrome といった他のブラウザでは特にそういったことは起こらない</li>
<li>逆に Opera では、どの保護されていないページ（「http://www.hoge.jp/〜」）からであっても、保護されているページ（「https://www.hoge.jp/〜」）へリンクした場合、「保護されてはいません」となる</li>
<li>Opera の場合、Windows ではリロードすると解消される（保護されている状態になる）が、Mac だとリロードしても解消しない（URL を直接入力してもダメ）</li>
<li>このサイトは PHP で構築されていて、ファイル名によって「http://」と「https://」を 302 リダイレクトで切り替えている（「info.php?〜」なら「http://」、「edit.php?〜」なら「https://」という具合）</li>
</ul>
<p>という感じです。<br />
もう、まったく意味が分からないんですけど……。</p>


<p><a href="http://feedads.g.doubleclick.net/~a/71vNl9X_rmlsFta9pF85282-kPA/0/da"><img src="http://feedads.g.doubleclick.net/~a/71vNl9X_rmlsFta9pF85282-kPA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/71vNl9X_rmlsFta9pF85282-kPA/1/da"><img src="http://feedads.g.doubleclick.net/~a/71vNl9X_rmlsFta9pF85282-kPA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/btmup_blog/~4/fI81xl-3-jY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.btmup.com/firefox/firefox-some-are-not-only-encrypted.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.btmup.com/firefox/firefox-some-are-not-only-encrypted.html" />
	<feedburner:origLink>http://blog.btmup.com/firefox/firefox-some-are-not-only-encrypted.html</feedburner:origLink></item>
		<item>
		<title>.htaccess で gzip 圧縮してデータ転送量を少なくする方法。</title>
		<link>http://feedproxy.google.com/~r/btmup_blog/~3/fdkylrxjqOs/htaccess-gzip.html</link>
		<comments>http://blog.btmup.com/web-general/htaccess-gzip.html#comments</comments>
		<pubDate>Fri, 25 Jun 2010 13:01:42 +0000</pubDate>
		<dc:creator>kbysbtmup</dc:creator>
				<category><![CDATA[Web制作全般]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[パフォーマンス]]></category>
		<category><![CDATA[圧縮]]></category>

		<guid isPermaLink="false">http://blog.btmup.com/?p=1326</guid>
		<description><![CDATA[
メモ的エントリー。
タイトルのまんまです。
Web ページを表示するときには、まず HTML やら CSS やら JavaScript やら 画像やらをダウンロードする必要があります。
それら各ファイルを圧縮することで [...]]]></description>
			<content:encoded><![CDATA[
<p>メモ的エントリー。<br />
タイトルのまんまです。</p>
<p>Web ページを表示するときには、まず HTML やら CSS やら JavaScript やら 画像やらをダウンロードする必要があります。<br />
それら<strong>各ファイルを圧縮することで転送量を小さく抑え、結果的にパフォーマンス向上（時間短縮）に繋げましょう</strong>、というお話。<br />
ページのつくりにもよりますが、<strong>70&#xFF5E;80% くらいフツーに圧縮</strong>されちゃいます。強力。</p>
<p>自宅サーバーや専用サーバーを使ってる場合は Apache の設定を直接いじることも可能ですが、今回はとりあえずパス。<br />
httpd.conf あたりを触ることになるんでしょうけど。</p>
<p>あと、「gzip」とは何ぞや、というのも、正直よく分かりません。<br />
昔から使われてるし一番普及してるし圧縮率も高いし使用制限とかもフリーだし標準化もされてるし、っていう感じなので、あまり深く考えず乗っかった方が良さげかな、と。<br />
<span id="more-1326"></span></p>
<h3>.htaccess での gzip 圧縮設定方法</h3>
<p>さて、gzip 圧縮するには、「<strong>mod_deflate</strong>」モジュールを使います。<br />
（ただ、これは Apache 2.x 系の場合で、Apache 1.3 とかの場合は「mod_gzip」を使うそうです）<br />
で、これを .htaccess で設定するワケですが、ただ圧縮するだけなら以下の一行を書いてアップするだけでOK。</p>
<blockquote><p>AddOutputFilterByType DEFLATE text/html text/css application/x-javascript</p></blockquote>
<p>他にも色々細かく設定できるみたいなんですけどね。圧縮率とか。<br />
そんなにこだわらず「圧縮できりゃいいや」っていう（僕みたいな）人ならこの一行で充分でしょう。</p>
<p>「AddOutputFilterByType DEFLATE」の後に、圧縮の対象とするファイルの形式（メディア・タイプ、コンテント・タイプ）を指定します。<br />
上記の指定は HTML と CSS と JavaScript の3種類で、画像は対象から外しています。<br />
（jpg や gif やもともと圧縮してますし、png も一応最適化してるので、gzip 圧縮したところでそれほど効果は望めない）<br />
まぁ、通常はこの 3 つで大丈夫なハズ。</p>
<p>ちなみに、PHP のページについても、「text/html」に含まれてます。<br />
デフォルトでそうなのか、meta タグで「content=&#8221;text/html; charset=UTF-8&#8243;」というような設定をしているからなのか……。<br />
詳しいことは分かりませんけど。</p>
<p>圧縮できてるかどうかの確認は、Firebug の「接続」タブや「YSlow」でも出来るのですが、↓のような便利なサイトもあります。</p>
<p>&raquo;<a href="http://www.gidnetwork.com/tools/gzip-test.php">GIDZipTest: Web Page Compression (Deflate / Gzip) Test &#8211; GIDNetwork</a></p>
<p>URL を入力したら、圧縮可否だけでなく、圧縮率やレスポンスヘッダーまで表示してくれます。</p>
<h3>注意点など</h3>
<p>アクセスのたびに圧縮して転送して……ということを繰り返すので、<strong>ユーザー数によってはサーバーにかなりの負荷がかかることも</strong>有り得ます。<br />
サーバーのスペックや Web システムとの絡みもあるのでケースバイケースになるんでしょうけど、もし動作が重くなったりした場合は別な方法を検討した方が良いかも知れません。</p>
<h3>WordPress で gzip 圧縮</h3>
<p>WordPress が入ってるサイトに↑の方法を試してみたら、「Internal Server Error」が発生。<br />
どうしたものかと思ったら、そのままズバリのプラグインがありました。</p>
<p>&raquo;<a href="http://wordpress.org/extend/plugins/gzip-pages/">WordPress &#8250; GZIP Output &laquo; WordPress Plugins</a></p>
<p>管理画面から「GZIP Output」を検索して、インストール→有効化するだけです。<br />
設定は特に無し。いや便利。</p>
<p>WordPress 本体のバージョンについては、2.8.3 までしか動作確認されてないっぽいのですが、2.9.2 と 3.0 に入れても（今のところ）ちゃんと動作してます。</p>
<h3>参考サイト</h3>
<ul>
<li><a href="http://d.hatena.ne.jp/techmedia-think/20091111/1257935235">mod_deflateでgzip圧縮 &#8211; Develop with pleasure!</a></li>
<li><a href="http://www.live-commerce.com/wiki/index.php/%E3%83%9B%E3%83%BC%E3%83%A0%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%AE%E8%A1%A8%E7%A4%BA%E3%82%92%E9%AB%98%E9%80%9F%E5%8C%96%E3%81%99%E3%82%8B">ホームページの表示を高速化する &#8211; Live Commerceドキュメント</a></li>
<li><a href="http://httpd.apache.org/docs/2.0/ja/mod/mod_deflate.html">mod_deflate &#8211; Apache HTTP サーバ</a></li>
<li><a href="http://www.atmarkit.co.jp/flinux/rensai/apache2_04/apache04b.html">＠IT：mod_deflateによるコンテンツの圧縮転送（2/3）</a></li>
<li><a href="http://builder.japan.zdnet.com/sp/firefox-3-for-developer-2008/story/0,3800087566,20384166,00.htm">YSlowでウェブサイトのパフォーマンスを改善： gzip圧縮を有効にする &#8211; builder by ZDNet Japan</a></li>
</ul>


<p><a href="http://feedads.g.doubleclick.net/~a/Lawv8pvDfV_w2bG0TJLnbOljL_I/0/da"><img src="http://feedads.g.doubleclick.net/~a/Lawv8pvDfV_w2bG0TJLnbOljL_I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Lawv8pvDfV_w2bG0TJLnbOljL_I/1/da"><img src="http://feedads.g.doubleclick.net/~a/Lawv8pvDfV_w2bG0TJLnbOljL_I/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/btmup_blog/~4/fdkylrxjqOs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.btmup.com/web-general/htaccess-gzip.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.btmup.com/web-general/htaccess-gzip.html" />
	<feedburner:origLink>http://blog.btmup.com/web-general/htaccess-gzip.html</feedburner:origLink></item>
		<item>
		<title>Firefox でテーブルの線（border）が表示されたりされなかったりする件の対策。</title>
		<link>http://feedproxy.google.com/~r/btmup_blog/~3/4vMu86TJSwk/firefox-table-border-bug.html</link>
		<comments>http://blog.btmup.com/css/firefox-table-border-bug.html#comments</comments>
		<pubDate>Tue, 18 May 2010 12:58:06 +0000</pubDate>
		<dc:creator>kbysbtmup</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[テーブル]]></category>
		<category><![CDATA[バグ]]></category>
		<category><![CDATA[表組み]]></category>

		<guid isPermaLink="false">http://blog.btmup.com/?p=1324</guid>
		<description><![CDATA[
珍しく Firefox のバグです（だと思います）。
あえて「解決法」ではなく「対策」としたのは、解決したかどうか定かではないからです。
つまり、「よく分からんけど、とりあえずうまくいってるっぽい」と。
発生した現象は [...]]]></description>
			<content:encoded><![CDATA[
<p>珍しく Firefox のバグです（だと思います）。<br />
あえて「解決法」ではなく「対策」としたのは、解決したかどうか定かではないからです。<br />
つまり、「よく分からんけど、とりあえずうまくいってるっぽい」と。</p>
<p>発生した現象はタイトルの通りですが、<strong>テーブルに設定した線が、Firefox で見てみると表示されたりされなかったりする</strong>のです。<br />
「されたりされなかったり」とは言っても、表示のたびに結果が変わるということではなく、再現性はあります。<br />
ただ、<strong>文字サイズを変えたり行間を変えたりパディングを変えたりすると、表示される線と表示されない線が違ったりする</strong>ということです。<br />
色々な数値を微調整していけばすべての線がちゃんと表示されるポイントがあるかも知れませんが、環境が異なればまた結果も変わってくるでしょうし、根本的な解決にはなりません。</p>
<p>というワケで、色々試した結果、以下のような方法に落ち着きました。<br />
<strong>かなり無理矢理</strong>ではありますが、今のところ正常に（？）表示されています。<br />
<span id="more-1324"></span></p>
<h3>原因は「border-collapse: collapse;」？</h3>
<p>ネットで調べまくってもいまいち情報が無かったので、Firebug を使って一つ一つプロパティをいじりながら確認してみました。<br />
すると、<strong>どうやら「border-collapse: collapse;」が原因らしい</strong>ことが判明。<br />
テーブルごとに設定するのが面倒なので、「border-spacing: 0;」と一緒に「border-collapse: collapse;」を table タグセレクタで一括設定してるんですが、これを Firebug で外すと線が表示されたのです。<br />
（もちろん線の重なりが解除になるので太くなっちゃいましたが）</p>
<p>じゃあ、<strong>この現象が起こってるテーブルだけ「border-collapse: separate;」にすれば良い</strong>のかも。<br />
という仮説を検証するため、「border」の設定方法を若干メンドくさい方法に変更。<br />
つまり、<strong>元々は「border」で四辺をいっぺんに設定していたものを、table 全体とセルごとの設定に一辺ずつ振り分けた</strong>ワケです。</p>
<p>うん、分かりにくいですね。<br />
以下、まとめ。</p>
<p>【元々】</p>
<pre><code>table {
	border-collapse: collapse;
	border-spacing: 0;
}
th,td {
	border: 1px solid #000;
}</code></pre>
<p>【修正後】</p>
<pre><code>table {
	border-collapse: collapse;
	border-spacing: 0;
}
table.hoge {	/* 線が表示されなかったテーブル */
	border-collapse: separate;
	border-top: 1px solid #000;
	border-left: 1px solid #000;
}
th,td {
	border-bottom: 1px solid #000;
	border-right: 1px solid #000;
}</code></pre>
<p>結果、見事成功。<br />
これで、Firefox でも全ての線が表示されるようになりました。</p>
<h3>やっぱり IE 対策は必要</h3>
<p>ところが、それで完全解決とはいきません。<br />
毎度毎度の登場、IE6 が顔を出します。今回は IE7 もご一緒でした。</p>
<p>上記の設定をしたところ、何とセル同士の間に隙間ができたのです。<br />
IE8は無事。ということは、IE6 と IE7 のバグ……？　またかよ……。</p>
<p>とはいえ、今回の元々の原因は Firefox にありますので、Firefox にだけ上記の設定を適用することにしました。</p>
<p>それが以下。</p>
<p>【最終版】　<ins style="color: #f00;">※設定の仕方が間違ってたので修正しました。[2010-05-19]</ins></p>
<pre><code>table {
	border-collapse: collapse;
	border-spacing: 0;
}
table.hoge {	/* 線が表示されなかったテーブル */
	border-top: 1px solid #000;
	border-left: 1px solid #000;
}
html:not([lang*=""]) table.hoge {	/* Firefox用ハック */
	border-collapse: separate;
}
th,td {
	border-bottom: 1px solid #000;
	border-right: 1px solid #000;
}</code></pre>
<p>Firefox にだけ適用するハックって何種類もあるみたいなんですが、何となく安定してるっぽいので今回はこの方法にしてます。<br />
（参考：<a href="http://lpclips.net/2008/06/css-hack.html">逆引きCSSハック(IE8,Firefox,Opera,Safariを含めたブラウザ別CSSハック) | Liquid Paper Clips</a>）</p>
<p>とりあえずこれで終了。<br />
根本的な原因が不明なのがアレですし、ハックで決着っていうのもアレですが、まぁ一つの参考にしてみてください。<br />
他のスタイルとの競合とかもあったりするかも知れませんしね。</p>
<p>しかし、バグは IE だけにしてほしいもんですなー。</p>


<p><a href="http://feedads.g.doubleclick.net/~a/uIrRuU5VoANI4AsjAgBFELTiZGs/0/da"><img src="http://feedads.g.doubleclick.net/~a/uIrRuU5VoANI4AsjAgBFELTiZGs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uIrRuU5VoANI4AsjAgBFELTiZGs/1/da"><img src="http://feedads.g.doubleclick.net/~a/uIrRuU5VoANI4AsjAgBFELTiZGs/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/btmup_blog/~4/4vMu86TJSwk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.btmup.com/css/firefox-table-border-bug.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.btmup.com/css/firefox-table-border-bug.html" />
	<feedburner:origLink>http://blog.btmup.com/css/firefox-table-border-bug.html</feedburner:origLink></item>
		<item>
		<title>PLESK で管理しているサーバー上のファイルの日付が FTP で見るとおかしい件の解決法。</title>
		<link>http://feedproxy.google.com/~r/btmup_blog/~3/NxJtalehvFU/plesk-ftp-timestamp.html</link>
		<comments>http://blog.btmup.com/server_management/plesk-ftp-timestamp.html#comments</comments>
		<pubDate>Thu, 15 Apr 2010 09:37:40 +0000</pubDate>
		<dc:creator>kbysbtmup</dc:creator>
				<category><![CDATA[サーバー管理]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[GMT]]></category>
		<category><![CDATA[PLESK]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[専用サーバー]]></category>

		<guid isPermaLink="false">http://blog.btmup.com/?p=1320</guid>
		<description><![CDATA[
タイトルって難しい……。
何やらややこしい書き方になってますが、まぁ、そんな感じです。
PLESK 上の操作で設定できたら良いんですけど、こういう細かい設定は SSH を使わないとできないみたいですね。
色々事を進めて [...]]]></description>
			<content:encoded><![CDATA[
<p>タイトルって難しい……。<br />
何やらややこしい書き方になってますが、まぁ、そんな感じです。</p>
<p>PLESK 上の操作で設定できたら良いんですけど、こういう細かい設定は SSH を使わないとできないみたいですね。<br />
色々事を進めていくと、「PLESK は初心者向け」という意味がよく分かってきます。</p>
<p>さて、日付がおかしい原因はというと、<strong>FTP サーバーに利用されている「Proftpd」というヤツの初期設定で「TimesGMT」が ON になっている</strong>こと、のようです。<br />
んー、まぁ、要するにデフォルトの設定がローカルのタイムゾーンではなくて世界の標準時になっちゃってる、ってことですね。たぶん。<br />
で、それをローカルのタイムゾーンに変更してやれば（「TimesGMT」を OFF ってやれば）OK、と。<br />
（ちなみに「GMT」については <a href="http://ja.wikipedia.org/wiki/%E3%82%B0%E3%83%AA%E3%83%8B%E3%83%83%E3%82%B8%E6%A8%99%E6%BA%96%E6%99%82">wikipedia</a> とかに詳しく載ってます）</p>
<p>肝心の変更方法については、とりあえず参考にしたページを列挙していきます。<br />
正直よく分かってないですし、しかもどれが決定打になったのかすらハッキリしないので。<br />
具体的なことは各リンク先をご覧ください。<br />
<span id="more-1320"></span></p>
<h3>SSH の使い方</h3>
<p>とりあえず SSH が使えない事には話になりません。</p>
<p>僕の場合は Mac OSX なので「ターミナル」を使いました。<br />
各環境によって様々あるので、探してみてください。</p>
<ul>
<li><a href="http://plesk.cc/wiki/?cmd=read&#038;page=FAQ%2FSSH%2F%A5%ED%A5%B0%A5%A4%A5%F3%CA%FD%CB%A1#content_1_0">FAQ/SSH/ログイン方法 &#8211; Plesk Wiki</a></li>
<li><a href="http://sourceforge.jp/magazine/09/02/02/0412259">Windows用定番SSHクライアント「Tera Term」の使い方</a></li>
</ul>
<p>まず、ログインに関しては、</p>
<pre><code># ssh （ユーザー名）&#0064;（ホスト名）</code></pre>
<p>でいけると思います。<br />
パスワードを求められるので、それを入力したらログイン完了。<br />
ユーザー名やパスワードは、レンタルサーバーであれば契約時にサーバー会社から情報が来ているはずです。</p>
<p>ログインしたら、root 権限を持つ「スーパーユーザー」になっておきます。</p>
<pre><code># su -</code></pre>
<p>ここでもパスワードを求められるので、ログイン時と同じく用意されたパスワードを入力します。<br />
ひょっとしたら必要ないかも知れないんですが……。<br />
念のためです。念のため。</p>
<p>あと、今回の操作で必要となる主な SSH コマンドを挙げておきます。<br />
その他や詳細はリンク先を参照ください。</p>
<p>↓ディレクトリの移動（例：「/etc」ディレクトリへ移動）</p>
<pre><code># cd /etc</code></pre>
<p>↓ファイルの編集（例：「proftpd.conf」というファイルを vi エディタで開く）</p>
<pre><code># vi proftpd.conf</code></pre>
<p>指定したファイルが無い場合は新規作成してくれるみたいです。<br />
あと、編集終了は「Esc」キーなんですが、これを押しただけでは特に何も表示されません。<br />
その後に続けて終了時のコマンドを打ち込むことで処理してくれます（下記リンク先参照）。</p>
<p>↓終了処理</p>
<pre><code># exit</code></pre>
<p>コツとしては、いざというときの「終わり方」を先に知っておいた方が良いと思います。<br />
慎重に、慎重に。</p>
<ul>
<li><a href="http://www.anaheim-e.biz/vps_manual3.html">Telnet/SSH のUnix コマンドプロンプト一覧表 Apache httpd.confファイル編集、バーチャルホストviテキストエディタ</a></li>
</ul>
<h3>設定ファイルの編集</h3>
<p>さて、ここからが本番なんですが、もう細かいことは書きません。<br />
誤解を招いてもいけないので。</p>
<p>とりあえず僕が実際に試した順番で載せておきます。</p>
<ul>
<li><a href="https://jpy.swsoft.com/ViewFAQ.php?p=19&#038;par_faq=3&#038;faq=62">SWsoft 株式会社 POS &#8211; Point of Sales &#038; Support &#8211; Virtuozzo, Plesk, SiteBuilder, HSPC, PEM &#8211; 全体的なプラットフォーム</a></li>
<li><a href="http://plesk.cc/wiki/?FAQ%2FWeb%2FFTP%A4%AC%A4%AA%A4%AB%A4%B7%A4%A4">FAQ/Web/FTPがおかしい &#8211; Plesk Wiki</a></li>
</ul>
<p>僕の場合、後者の設定をした段階で状況は改善されました。<br />
FTP クライアントで表示をリロードするだけで、ちゃんとした日時で表示されるようになります。</p>
<p>ただ、後者だけで良かったのか、2つとも設定したから解決したのか、そのあたりは分かりません。<br />
「元に戻して検証」なんて、恐くて出来ませんしね……。</p>
<p>慎重に、お試しください。</p>


<p><a href="http://feedads.g.doubleclick.net/~a/T1L61isRqOwfU-JETMSkHjSugIY/0/da"><img src="http://feedads.g.doubleclick.net/~a/T1L61isRqOwfU-JETMSkHjSugIY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/T1L61isRqOwfU-JETMSkHjSugIY/1/da"><img src="http://feedads.g.doubleclick.net/~a/T1L61isRqOwfU-JETMSkHjSugIY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/btmup_blog/~4/NxJtalehvFU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.btmup.com/server_management/plesk-ftp-timestamp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.btmup.com/server_management/plesk-ftp-timestamp.html" />
	<feedburner:origLink>http://blog.btmup.com/server_management/plesk-ftp-timestamp.html</feedburner:origLink></item>
		<item>
		<title>SOY CMS でルート設定するとアクセスできなくなってしまうディレクトリを救出する方法</title>
		<link>http://feedproxy.google.com/~r/btmup_blog/~3/-iQr-opDHyM/soy-cms-rootsite.html</link>
		<comments>http://blog.btmup.com/cms/soy-cms-rootsite.html#comments</comments>
		<pubDate>Mon, 05 Apr 2010 13:31:18 +0000</pubDate>
		<dc:creator>kbysbtmup</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[SOY CMS]]></category>
		<category><![CDATA[ルート設定]]></category>

		<guid isPermaLink="false">http://blog.btmup.com/?p=1318</guid>
		<description><![CDATA[
SOY CMS でサイトを制作して、ドメイン直下にページを公開したい場合は「ルート設定」をします。
その意味や方法についてはマニュアルを見ていただくとして、今回のテーマは「ルート設定からの逃れ方」。
サーバーによっては [...]]]></description>
			<content:encoded><![CDATA[
<p>SOY CMS でサイトを制作して、ドメイン直下にページを公開したい場合は「ルート設定」をします。<br />
その意味や方法については<a href="http://www.soycms.net/man/cms_admin/RootSite">マニュアル</a>を見ていただくとして、今回のテーマは「ルート設定からの逃れ方」。</p>
<p>サーバーによっては、コントロールパネル（管理画面、以下「コンパネ」）がサイトと同じ階層（FTPで見えるところ）にあったり、全然別のURLなのにあたかも同じサーバーに乗っかってるような設定になっているところがあります。<br />
（すんません。何を書いてるか自分でもよく分からないんですが、同じ状況になった人なら分かってくれると思います。たぶん）</p>
<p>で、そんな場合に SOY CMS のルート設定をすると、コンパネにアクセスできなくなったりすることがあるワケですね。<br />
僕の場合は「404 Not Found」エラーになりまして、SOY CMS で設定した「見つかりません」ページが空しく表示されるばかり。<br />
試しにルート設定を外してみると、コンパネにアクセスできるようになります。<br />
再度設定すると、やっぱりまたアクセスできない。</p>
<p>うーん……、ルート設定に原因があることは間違いないみたい……。<br />
これは困った。</p>
<p>……んですが、いろいろ試していると運良くうまくいく方法があったので、備忘も兼ねてご紹介しておきます。<br />
<span id="more-1318"></span></p>
<h3>自動生成された「.htaccess」を編集して、除外してやる</h3>
<p>僕が関わっていた件の場合、コンパネのディレクトリ（というかURL）を特定することができました。<br />
ということは、「ルート設定」の対象からこのディレクトリだけを除外してやれば良いはず。<br />
ということは、「ルート設定」をしたときに SOY CMS が自動的に生成する「.htaccess」を編集すればいけるんじゃないか。<br />
と踏んだワケです。</p>
<p>ちなみに、SOY CMS が自動生成する「.htaccess」は次の通り。</p>
<pre><code># @generated by SOY CMS at 2010-04-05 18:24:54
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.htm !-f
RewriteCond %{REQUEST_URI} !/index.php/
RewriteRule ^(.*)$ index.php/$1 [L]
#---SOY CMS end of htaccess file --</code></pre>
<p>じっくり見てみると……。</p>
<p>お、「!/index.php/」てのがありますね。<br />
「!」って、正規表現で言うところの否定ですよね。<br />
ということは、たぶん「/index.php/」じゃなかったら、って意味ですよね。<br />
だったら、ここに除外したいディレクトリを入れたらいけんじゃね？</p>
<p>という感じで、以下のようにしてみました。</p>
<pre><code># @generated by SOY CMS at 2010-04-05 18:24:54
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.htm !-f
RewriteCond %{REQUEST_URI} !/index.php/
<span style="color: #f00; font-weight: bold;">RewriteCond %{REQUEST_URI} !/hoge_conpane/</span>
RewriteRule ^(.*)$ index.php/$1 [L]
#---SOY CMS end of htaccess file --</code></pre>
<p>ビンゴ！</p>
<p>うまくいきました。<br />
コンパネも表示されるようになりましたし、ルート設定も問題ないようです。<br />
（もちろん他にも色々調べたり検証したりしたですって。単なる当てずっぽうじゃないんですって）</p>
<p>もし書き方がおかしかったり、もっと良い方法があれば教えてください。<br />
見ての通り、詳しい方ではないので。</p>
<p>とりあえず今回はディレクトリ（というかURL）を特定できたので、「そこを除外すればOK」という単純な方法で解決できました。<br />
が、それ以外のケースもあるでしょうから、それはまたぶつかったときに考えたいと思います。<br />
（いや、考えないといけないことがないことを祈りますけど）</p>
<h3>雑感など</h3>
<p>それにしても、ルート設定って、SOY CMS 内で管理してる特定のサイト（ディレクトリ？）にだけ効果があるものだと思ってたんですけど、そうでもないんですね。<br />
サーバーのことを分かってる人からすると「なーにを今さら。ケッ！」って感じなのかも知れないですけど、僕のように「CMS の導入は出来るよ。でもカスタマイズはほとんど出来ないよ」というくらいのレベルの人間にとってみたら、今回のような事象は非常にビックリなのです。<br />
いや、本当に焦った……。</p>
<p>日々勉強、そして経験、ですなぁ。</p>


<p><a href="http://feedads.g.doubleclick.net/~a/1kvbCfvqjaAJV75zR7-mROlic2U/0/da"><img src="http://feedads.g.doubleclick.net/~a/1kvbCfvqjaAJV75zR7-mROlic2U/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/1kvbCfvqjaAJV75zR7-mROlic2U/1/da"><img src="http://feedads.g.doubleclick.net/~a/1kvbCfvqjaAJV75zR7-mROlic2U/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/btmup_blog/~4/-iQr-opDHyM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.btmup.com/cms/soy-cms-rootsite.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.btmup.com/cms/soy-cms-rootsite.html" />
	<feedburner:origLink>http://blog.btmup.com/cms/soy-cms-rootsite.html</feedburner:origLink></item>
	</channel>
</rss>
