複数ページに分かれていた/aaa/ディレクトリを単ページに変更する場合、リダイレクトはどのように記述すればよろしいでしょうか。
■ページ構成の変更
「/aaa/****/」はすべて削除し、「/aaa/」のみにする
https://www.example.com/aaa/bbb
https://www.example.com/aaa/ccc
https://www.example.com/aaa/ddd
https://www.example.com/aaa/eee
https://www.example.com/aaa/eee/***/
↓↓↓
https://www.example.com/aaa/
以下のように複数記述する方法しかありませんか?
■リダイレクトの記述
RewriteRule ^aaa/bbb$ https://www.example.com/aaa/ [R=301,L] RewriteRule ^aaa/ccc$ https://www.example.com/aaa/ [R=301,L] RewriteRule ^aaa/ddd$ https://www.example.com/aaa/ [R=301,L] RewriteRule ^aaa/eee$ https://www.example.com/aaa/ [R=301,L]
何卒ご教示くださいますようお願い申し上げます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。