0
私は、古いサブフォルダと人々がリンクしている可能性のある反復を扱う際にリダイレクトを削減することを検討しています。今、私はこれをやっています:これらのエントリを簡略化するためのRedirectMatch構文
RedirectMatch 301 (?i)/old-sub-folder/index.html$ https://www.website.com/new-place/
RedirectMatch 301 (?i)/old-sub-folder/$ https://www.website.com/new-place/
RedirectMatch 301 (?i)/old-sub-folder$ https://www.website.com/new-place/
それは同じページですが、私がここで各バージョンを追加しないと404ページに行きます。これを1つの行にまとめる方法はありますか? Apache - Regular Expression (Regex)によると