2

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?

5

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.

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.