This works for me in web.config:
<system.webServer> <rewrite> <rules configSource="web.rules.config" /> </rewrite> </system.webServer>
One great thing is that the IIS Configuration Editor respects this external file when editing rules and writes the changes back to the external file.
If you put:
<system.webServer> <rewrite configSource="web.rules.config" /> </system.webServer>
it will not work, you will get an HTTP error 500.19 Internal server error:
Error Code: 0x8007000d Config Error: Unrecognized attribute 'configSource'
Can someone point the final MSDN help page to the rewrite element and the configSource attribute? The MSDN article on system.webServer does not mention the rewrite element, and I cannot find the MSDN page via google.
Johnc
source share