Apache/htaccess

html,php以外はアクセス拒否

<FilesMatch "\.(html|php)$">
    Order allow,deny
    Allow from all
</FilesMatch>

<FilesMatch ".*">
    Order deny,allow
    Deny from all
</FilesMatch>

htmlをphpとして実行する

<FilesMatch "\.html$">
  AddType application/x-httpd-php .html
</FilesMatch>

トップ   一覧 検索 最終更新   ヘルプ   最終更新のRSS