.htaccess に FilesMatch と SetHandler なんかを組み合わせる方法がメジャーぽいけれど、以下の方法でもOKだった(ただし、Apache モジュール版の PHP でのみ)。
# .htaccess php_flag engine off AddType text/plain php
php_flag engine off
で PHP を無効にし、AddType text/plain php
で拡張子が php のものを text/plain に紐づける。シンプルでわかりやすい。
≪ 2018-10-17
休み
2018-10-16 ≫
integrity 属性を使った改ざん検知