URL redirect still works when I disable the rule

cf 21 Reputation points
2022-01-25T14:06:55.307+00:00

I use the below rule to redirect http to https, it works, but after I disable the rule it still works.

At first, I think it was a cache problem, but I cleared the browser's cache and the problem didn't resolve.

Any suggestion would be greatly appreciated!

<rule name="Redirect to HTTPS" stopProcessing="true">
  <match url="(.*)" />
    <conditions>
      <add input="{HTTPS}" pattern="^OFF$" />
    </conditions>
  <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" />
</rule>
Windows development | Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. Sam Wu-MSFT 7,561 Reputation points Microsoft External Staff
    2022-01-26T02:06:33.783+00:00

    @cf

    The rule looks just correct without any issue, you can try to disable rule using the enable attribute of the rule tag.

    <rule name="Redirect to HTTPS" enabled="false">  
    

    and do you have any the same rule in global level or site level? In addition, please check this issue occur on all machines or only specific client.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.