0

i have two seperate config files, which contains url reqwrite tags, i want to point these files to the web.config, under rewrite element, until i have one

<rewriteMaps configSource="VanityUrl\urls.config" />

if i add one more similar tag to point another file, it throws the 500 server error can i add multiple rewriteMaps tag to point multiple files in web.config, or any alternate, the reason behind 2 seperate files are one is used for rewrite, and another for static redirects

Abbas
  • 4,948
  • 31
  • 95
  • 161

1 Answers1

0

Having multiple rewriteMaps tags will violate the web.config schema, so IIS won't let you do that. I think you'll need to combine them, or do something clever to load them at runtime from your two separate configuration files.

Francis Spor
  • 144
  • 2
  • 7