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.
source
share