This technique will only work if your Apache server has PHP enabled (この手法でのみ動作するApacheサーバは、 PHPの場合は有効になって( how to test php support in apache http serverどうかをテストするPHPのサポートされApache HTTPサーバー ) and .htaccess enabled. )と。 htaccessを有効にします。

In the root directory of your html files create a file named .htaccess .のルートディレクトリにしてhtmlファイルの名前のファイルを作成します。 htaccessのです。 The file may already be present.このファイルが既に存在します。

Open the file in your favorite editor and add the following lines:お好みのエディタでファイルを開きます以下の行を追加します:

addtype application/x-httpd-php .html するAddType application / -のhttpd - PHPのです。 HTMLの
addtype application/x-httpd-php .htm するAddType application / -のhttpd - PHPの。 htmの

Done!完了した!