Reputation: 175
I develop ASP.NET MVC 3 application. I've downloaded UrlRewriting module and created some rules for my website locally. Next i published this website on the Internet to check performance. Thats ok. Then i continued my work locally again. I commented code block in the web.config file regarding these rules. So there are no rules in IIS Manager too. The problem is that rules still affect! For example, i defined "Canonical hostname rule" to redirect browser to "www.*" site name. So this rule still affect, i.e. local IIS server redirect my locally running website to the real one on the Internet. Also i installed IIS Express to try it out too. Result is the same. I cant figure it out where the problem is. So, there are no rewrite rules on IIS server and IIS Express, but they still affect.
Upvotes: 7
Views: 6540
Reputation: 1
You need to reset the IIS in order to apply the changes, then you should clear the browser cache.
Upvotes: 0
Reputation: 603
Late answer is late. Most likely the redirect was "permanent" so a 301, then it will be cached in the browsers. If you want it to be temporary redirect with code 307.
Upvotes: 4
Reputation: 9329
The URL Rewrite module seams to my a little buggy when the configuration changes becouse the loaded configuration doesn't refreshed until the IIS isn't restarted.
Upvotes: 2