Unable to remove a URL rewrite from IIS7

前端 未结 3 761
不思量自难忘°
不思量自难忘° 2021-01-04 03:55

I\'ve spent hours trying to solve this so I\'m posting as a last resort..

I\'ve tried removing some URL rewrites that were pointing a webpage from HTTP to HTTPS.

相关标签:
3条回答
  • 2021-01-04 04:22

    Have you checked server level rules? Can be found in IIS Manager, click server node and then Url Rewrite module or directly in the IIS config file located:

    C:\Windows\System32\inetsrv\config\applicationHost.config
    
    0 讨论(0)
  • 2021-01-04 04:24

    It seems that there is an output cache that caches the redirect response before it reaches the URL rewrite rules again. It can be turned off:

    <system.webServer>
        <caching enabled="false" enableKernelCache="false" />
    </system.webServer>
    

    Be aware though that this is output cache for the whole application, so it might affect something else. In any case it can be utilized and then commented out to clean the state of url rewrite rules.

    0 讨论(0)
  • 2021-01-04 04:34

    I had the same problem with IIS express - removing rewrite section from web.config was unsuccessful. Solution - clean a browser's cache.

    0 讨论(0)
提交回复
热议问题