拡張子の index.html と index.php を非表示する方法
RewriteEngine on RewriteCond %{THE_REQUEST} ^.*/index.(html|php) RewriteRule ^(.*)index.(html|php)$ https://%{HTTP_HOST}/$1 [R=301,L]
.htaccess をトップではなく、下層ディレクトリに入れる場合
RewriteEngine on RewriteCond %{THE_REQUEST} ^.*/index.(html|php) RewriteRule ^(.*)index.(html|php)$ /該当するフォルダ名/$1 [R=301,L]