htaccessファイル
リニューアルしたサイトの古いアドレスをリダイレクトさせたいときなどに。
index.htmlなどへのアクセスがエラーページになってしまうときなどに、
hogehoge.com/index.html
↓ リダイレクト
hogehoge.com/
させたいときに、下記のように記載し.htaccessファイルをルートディレクトリに置く。
Options +FollowSymLinks RewriteEngine on RewriteCond %{THE_REQUEST} ^.*/index.html RewriteRule ^(.*)index.html$ http://hogehoge.com/$1 [R=301,L]