1

URL 書き換えモジュールを使用してブラウザーにアクセスすると、このルールが機能しないのはなぜですか?
URL書き換えモジュールを備えた正規表現テスターで動作します。
私はそれをすべてのルールの一番上に置きました。

URL の例:organizations/51/middle-tennessee-basketball-showcases-basketball-tournaments?page=1

書き換えルール:

<rule name="Organization Redirect" stopProcessing="true">
    <match url="^organizations/(.*)-basketball-tournaments\?page=1$" />
    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
    <action type="Redirect" url="organizations/{R:1}" appendQueryString="false" />
</rule>
4

1 に答える 1

1

ルールは次のようになります。

<rule name="Organization Redirect" stopProcessing="true">
    <match url="^organizations/(.*)-basketball-tournaments$" />
    <conditions>
        <add input="{QUERY_STRING}" pattern="^page=1$" />
    </conditions>
    <action type="Redirect" url="organizations/{R:1}" appendQueryString="false" />
</rule>

テストではなく、セクションでクエリ文字列 (ここpage=1) を確認する必要があります。urlconditions

于 2013-07-31T16:50:34.353 に答える