前提・実現したいこと
以下のリダイレクトを行いたいです。
① http://example.com/hogehoge/index.html → https://example.com/hogehoge/
② http://example.com/hogehoge/lp/ → https://example.com/hogehoge/
③ http://example.com/hogehoge/lp/index.html → https://example.com/hogehoge/
①のために.htaccessへ記述
lang
1RewriteCond %{THE_REQUEST} ^.*/hogehoge/index.html 2RewriteRule ^(.*)index.html$ https://example.com/$1 [R=301,L]
②のために.htaccessへ記述
lang
1Redirect permanent /hogehoge/lp/ https://example.com/hogehoge/
③のために.htaccessへ記述
lang
1Redirect permanent /hogehoge/lp/index.html https://example.com/hogehoge/
①・②は問題なく飛ぶのですが、③がhttps://example.com/hogehoge/index.htmlに飛んでしまいます。
index.html無しのページにリダイレクトさせたいです。
お手数ですが、どなたかご教授いただけないでしょうか。
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/08/01 04:45