Is it possible to export URL rewrite rules for IIS7?
I am setting up a duplicate of a website for internal use (testing) and want to duplicate all of the URL Rewrite rules without having to manually enter them.
There is an import option, but no obvious 'export'…
Thanks!
Best Answer
I think you have 2 options:
You could look in the web.config file, and copy the
<rewrite>
section, then paste into the web.config file on the new system.Or, you could use appcmd to export the rules to a file, and to import them on the new system:
Export:
Import (globaly on the server):
Import for a specific website:
You can also export any global rewrite rules using:
The import command would be the same.