Bất cứ khi nào ai đó yêu cầu qua giao thức HTTP, tôi viết lại url để tạo HTTPS. Đây là mã trong web.config:Lỗi quy tắc ghi đè: Lỗi HTTP 500.50 - Lỗi Mô-đun Rewrite URL. Không thể mở rộng cụm từ "https://abc.com/{R:1}"
<rule name="Imported Rule 1-1" enabled="true" stopProcessing="true">
<match url="^(?!https://).*" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{SERVER_PORT}" pattern="80" ignoreCase="false" />
</conditions>
<action type="Rewrite" url="https://abc.com/{R:1}" />
</rule>
Tuy nhiên khi tôi duyệt trên http: // tôi nhận được IIS lỗi
HTTP Error 500.50 - URL Rewrite Module Error. The expression
"https://abc.com/{R:1}"
cannot be expanded.
Làm thế nào tôi có thể giải quyết này? Tôi hoàn toàn bối rối.
Tôi nhận được điều này cũng bây giờ. Bạn đã bao giờ tìm thấy một giải pháp? Nếu có, vui lòng đăng tại đây. –