I created a new URL rewrite rule through the IIS manager GUI. But when I browse to the site config XML file, I don't see any rewrite rules even though I have confirmed the rewrite is working. I had expected that the rewrite GUI would generate the corresponding XML in the config file. Is that not how it works?
Asked
Active
Viewed 8,630 times
1 Answers
6
When adding a rewrite rules to a site it should save it in the site's web.config.
One reason I can think of why you don't see it there, is that you added the rule on the server level rather than the site level.
When done on the server level it is saved in the ApplicationHost.config file.
%systemroot%\System32\inetsrv\config\applicationHost.config
You can also define it on the folder level, it that case it is saved in a web.config file inside that folder.

Peter Hahndorf
- 14,058
- 3
- 41
- 58
-
Okay thanks, I found it. I had changed it on the site level, but was looking in the wrong place - I was looking in the Config folder within site. Not sure what the difference between the two is. – alexp Jan 14 '14 at 19:42