.htmlのファイルをphpとして動作させたい場合
グローバルトップがindex.phpとかだと嫌な場合とか隠しておけます
やっぱりプログラム動いてますよ!ってのを主張してるようなものなので
そっと隠しておきたくなる気持ちもわかります。
php4の場合
.htaccessに
「AddType application/x-httpd-php .html」
って入れればいい。
#index.htmlのみに当たるようにしてある <Files index.html> AddType application/x-httpd-php .html </Files>
もしapacheでAddTypeの実行を許可してなかたら
AllowOverride FileInfo <Files index.html> AddType application/x-httpd-php .html </Files>
php5の場合
<Files index.html> AddHandler php5-script .html </Files>
php4では、"php-script" をサポートしていないらしい。
【参照サイト】
GAC なぜなにGAC->PHP
【htaccessの設定参照】
mod_mime - Apache HTTP サーバ AddType ディレクティブ
mod_mime - Apache HTTP サーバ AddHandler ディレクティブ
core - Apache HTTP サーバ AllowOverride ディレクティブ