IIS 7.5. Unable to disable Url rewrite rules (I deleted the rules, but they still affect)

I am developing an ASP.NET MVC 3 application. I downloaded the UrlRewriting module and created some rules for my site locally. I then published this website on the Internet to test performance. Nothing wrong. Then I continued my work again. I commented on a block of code in the web.config file regarding these rules. Therefore, there are no rules in IIS Manager either. The problem is that the rules are still in effect! For example, I defined the rule "Canonical hostname" to redirect the browser to the site name "www. *". Thus, this rule still affects, that is, the local IIS server redirects my locally working website to a real one on the Internet. I also installed IIS Express to try. The result is the same. I can not understand where the problem is. In this way,there are no rewrite rules on the IIS server and IIS Express, but they do affect it anyway.

+5
source share
2 answers

The Rewrite URL module gives me a small error when changing the configuration, since the loaded configuration is not updated until IIS is restarted.

+2
source

Late reply is delayed. Most likely, the redirect was "permanent", so 301, then it will be cached in browsers. If you want this to be a temporary redirect with code 307.

+2
source

All Articles