I used to want to save redirects from web.config because I have many rewrite rules. I was successful at this using
<rewrite> <rules configSource="RewriteRules.config" /> </rewrite>
Now the problem is that this file already has a lot of rules, and I'm going to use a different set of a large number of rules for a different domain specified in the same base code. Therefore, I want to save the rules for both files in different files, for example: -
<rewrite> <rules configSource="RewriteRules_a.config" /> <rules configSource="RewriteRules_b.config" /> </rewrite>
which is not allowed , can anyone suggest how can I fix this situation? Please note that both domains will have different rules, and adding a domain may be more in this project.
Any suggestions would be appreciated ...
source share