문제

내 web.config :

에 다음 코드가 있습니다.
<rewrite>
    <rules>
        <rule name="Redirect HTTP to HTTPS" stopProcessing="true">
            <match url="(.*)" />
            <conditions>
                <add input="{HTTPS}" pattern="^OFF$" />
            </conditions>
            <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" 
                    redirectType="SeeOther" />
        </rule>
    </rules>
</rewrite>
.

http://www.mysite.com/manual 를 제외한 모든 것을 리디렉션하고 싶습니다.https.

위의 내용을 어떻게 수정할 수 있습니까?

도움이 되었습니까?

해결책

조건 태그에 다음 코드를 추가하는 것이 좋습니다

<add input="{REQUEST_URI}" negate="true" pattern="^/manual/*" ignoreCase="true" />
.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top