拡張子 .html で PHP を動作させたい場合の.htaccessの設定

備忘録として。

.htaccessに下記を記述

 

ハッスルサーバー

addtype application/x-httpd-php .html AddHandler x-httpd-php .html

 

NSFレンタルサーバー

AddType application/x-httpd-php .php .html

 

ロリポップサーバー

AddHandler php5.3-script .html