ASP.NET의 HTTPS로 단일 URL을 모두 리디렉션하려면 어떻게해야합니까?
-
22-12-2019 - |
문제
내 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" />
. 제휴하지 않습니다 StackOverflow