URL이 리디렉션되지 않도록 제외할 때 발생하는 문제

URL이 리디렉션되지 않도록 제외할 때 발생하는 문제

레거시 사이트를 중단하겠습니다http://extranet.contoso.com하지만 한동안 필요한 특정 기능이 있습니다. 내가 달성하려는 것은 모든 요청을 정보 페이지로 리디렉션하는 것입니다.https://contoso.com/new-extranet-info-page/, 다음에 대한 요청은 제외http://extranet.contoso.com/printdoc.aspx?ID=1234567&AccountID=vd3l1bn&UserID=Matt리디렉션되지 않고 계속 진행되어야 합니다. 나는 그것이 간단하고 분명한 것이라고 확신하지만 그것을 알아낼 수는 없습니다. 이는 마치 부정이 무시되는 것처럼 모든 요청을 정보 페이지로 리디렉션합니다.

            <rule name="Redirect to new service" stopProcessing="true">
                <match url=".*" />
                <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                    <add input="{REQUEST_URI}" pattern="^/printdoc\.aspx(\?.*)?$" negate="true" />
                    <add input="{HTTP_HOST}" pattern="^extranet\.contoso\.com$" />
                </conditions>
                <action type="Redirect" url="https://contoso.com/new-extranet-info-page/" appendQueryString="false" />
            </rule>

/printdoc.aspx?ID=1234567&AccountID=vd3l1bn&UserID=Matt에 대해 테스트할 때 부정은 유효성 검사를 통과합니다. 존재하는 다른 재작성 규칙을 비활성화하려고 시도했지만 효과가 없습니다.

관련 정보