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?
Iis – Can’t find IIS Rewrite Rule in Config XML
iisiis-7rewrite
Related Topic
- Convert Old .htaccess rules to IIS Rewrite Rules
- Outbound URL Rewrite rule causes 500 server error on IIS7.0
- Iis – How to identify which rewrite rule is being trigger on IIS 7.5
- Understanding IIS 8.0 Rewrite inbound rule for https to http redirect using regular expression
- IIS rewrite language based rule and default language
- IIS URL Rewrite rule test pattern error: The input data to test does not match the pattern
Best Answer
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.
You can also define it on the folder level, it that case it is saved in a web.config file inside that folder.