0

永続的なルールをリダイレクトする必要があることを Apache に伝えたいです。

私のログには 2 種類のヒットがあります。

xx.xxx.xx.x - - [15/Mar/2013:08:14:21 +0100] "POST /oldEndPoint/services/toto HTTP/1.1" 200 - 6003 -
xx.xxx.xx.x - - [15/Mar/2013:08:15:40 +0100] "POST /newEndPoint/services/Tutu/toto HTTP/1.1" 200 - 1316 -

Apache に、/oldEndPoint/services/toto へのヒットを受信したら、新しい URL へのリダイレクト (301) を行う必要があることを伝えたいと思います: /newEndPoint/services/Tutu/toto.

このルールを試してみましたが、うまくいきません。リダイレクトは表示されません:

RedirectMatch 301 /modBackend/moderation/facebook /modFront/services/Moderation/facebook

ありがとう!

4

1 に答える 1

0

RedirectMatch単純なリダイレクトは必要ありません。

Redirect代わりに参照してください。最初に古い URL を指定し、最後に新しい URL を指定する必要があります

Redirect /oldEndPoint/services/toto /newEndPoint/services/Tutu/toto
于 2013-03-17T02:05:32.740 に答える