Tôi không thể tìm ra cách để chuyển đổi triển khai web.config của mình hoạt động cho quy tắc viết lại. Tôi đã thử những điều sau đây và nó bỏ qua nó.cập nhật quy tắc viết lại url với việc chuyển đổi web2012 triển khai web2012
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.webServer>
<rewrite xdt:Transform="Replace">
<rules>
<rule name="Force HTTPS On Login/Register" stopProcessing="true">
<match url="Account/Login(.*)|Register(.*)" ignoreCase="true" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:0}" redirectType="Permanent" />
</rule>
<rule name="Force HTTPS Off" stopProcessing="true">
<match url="((Account/Login(.*))|(Register(.*)))" negate="true" ignoreCase="true" />
<conditions>
<add input="{HTTPS}" pattern="^ON$" ignoreCase="true" />
</conditions>
<action type="Redirect" url="http://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
hoạt động như bạn đã đề xuất. cho đến nay tôi đã không phải sử dụng slowcheetah. Tôi tiếp tục nghe về nó nhưng chỉ ghét phải tiếp tục thêm vào những phụ thuộc của tôi. –