Retoucher.jp

主にPC関連の備忘録と映画の感想を書いています。

ホーム > PC関連備忘録 > MovableType > さくらインターネットでダイナミック・パブリッシング

さくらインターネットでダイナミック・パブリッシング

ここのサイトはまだ行っていませんが、別管理のブログのエントリーが600くらいあるので、実験的にダイナミック・パブリッシングに移行することにしてみました。


シックスアパートのマニュアル通り作業すれば、問題ないのですが・・・

「.htaccess」に書かれる文章がコレ。

## %%%%%%% Movable Type generated this part; don’t remove this line! %%%%%%%
# Disable fancy indexes, so mtview.php gets a chance…
Options -Indexes +SymLinksIfOwnerMatch

# The mod_rewrite solution is the preferred way to invoke
# dynamic pages, because of its flexibility.

# Add mtview.php to the list of DirectoryIndex options, listing it last,
# so it is invoked only if the common choices aren’t present…

DirectoryIndex index.php index.html index.htm default.htm default.html default.asp /mtview.php

RewriteEngine on

# don’t serve mtview.php if the request is for a real directory
# (allows the DirectoryIndex lookup to function)
RewriteCond %{REQUEST_FILENAME} !-d

# don’t serve mtview.php if the request is for a real file
# (allows the actual file to be served)
RewriteCond %{REQUEST_FILENAME} !-f
# anything else is handed to mtview.php for resolution
RewriteRule ^(.*)$ /mtview.php [L,QSA]


# if mod_rewrite is unavailable, we forward any missing page
# or unresolved directory index requests to mtview
# if mtview.php can resolve the request, it returns a 200
# result code which prevents any 4xx error code from going
# to the server’s access logs. However, an error will be
# reported in the error log file. If this is your only choice,
# and you want to suppress these messages, adding a “LogLevel crit”
# directive within your VirtualHost or root configuration for
# Apache will turn them off.
ErrorDocument 404 /mtview.php
ErrorDocument 403 /mtview.php

## ******* Movable Type generated this part; don’t remove this line! *******

で、どうしても500エラーが出てしまったので、この中の事を調べてみたら、さくらインターネットのヘルプ画面でこういったページが出てきました。

平素はさくらインターネットのサービスをご愛顧いただきまして誠に
ありがとうございます。

「さくらのレンタルサーバ」では mod_rewrite モジュールへの対応を、
2005年4月6日よりご利用のウェブサーバに実施いたします。
※ 3月20日以降にご用意したサーバ(www411.sakura.ne.jp 以降)に
ついてはテスト運用として試験的に導入済みです。
mod_rewrite はウェブサーバ(Apache)のモジュールの一つでルールに
一致したURLの書き換えを行うことができます。
ただし、.htaccess※ の記述内容を誤りますと表記エラー(Internal Server
Error)となりホームページが閲覧できなくなりますのでご注意ください。

※ Optionsの指定はできません。

記述内容や設定方法についてはサポート外とさせていただいております。
以下のようなウェブドキュメントや専門書籍などご参考ください。

ということで、Optionが使えないのね・・・・

上の「.htaccess」のオプション部分に「#」コメントアウトを入れて、FTPソフトでアップしたところ、問題なく動作しました。

要はこの1つの項目だけだったんですね・・・・・

コメントはまだありません