次のタイプのフォルダーをリダイレクトしたい:example.com/stores/something/title/に
example.com/stores/title/。次のリダイレクトを行いました。
RedirectMatch 301 /stores/(.*)/(.*)/(.*) http://www.example.com/stores/$2/$3
それは機能しますが、問題があります。これらの種類のリンクをリダイレクトしたくありません。
example.com/stores/title/page/2/
私のリダイレクトは、上記のリンクを にリダイレクトしexample.com/stores/2/ます。したがって、「ページ」サブフォルダーがあることを除いて、すべてをリダイレクトしたいと思います。