前提条件:
サイトrootに .htaccessファイルを作成 *権限注意
まだ、
.httpdにて編集したいDirectoryにて
AllowOverrideをAllにする *必要に応じてAllは他のもっと細かい設定にできる
HTTPをHTTPSにリダイレクトする
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
URLの後ろにindex.*を消す
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ https://<domain>.com/$1 [R=301,L]