私はこの動的なルールを持っています:
RewriteRule ^(.*)/(.*)$ /rewrite.php?sub=$1&second=$2 [NC]
そして私はこのようないくつかの静的ルールを追加しようとしています:
RedirectMatch 302 /construction/pools.html http://www.{samedomain}.com/construction-services/pools
問題は、アドレスバーに次のように入力した場合です。
http://www.{samedomain}.com/construction/pools.html
次に、apacheは次の場所にリダイレクトします。
http://www.{samedomain}.com/construction-services/pools?sub=construction&second=pools.html
私が欲しいのは、apacheが次の場所にリダイレクトすることです。
http://www.{samedomain}.com/construction-services/pools
誰かが理由を知っていますか?
ありがとうございました。