I ran into this problem and inspected the solutions. There is nothing in IIS modules that could do this (spanning rewriting cards for multiple files)
I decided this is a good old DOS way :)
I had a large rewrite map file (50,000+ entries) with a logical (!) Partition name. What I did was save each card in its own text file. Map1.config Map2.config Map3.config
I have a 'header.config' that contains two lines
<rewrite> <rewriteMaps>
and footer.config has
</rewriteMaps>
Each map configuration starts with the corresponding name <rewriteMap name="Map name" defaultValue=""> , has all the rewrites that I want to connect, and then ends with the </rewriteMap> .
FINALLY - to create my complete file, I use the COPY command in DOS! I created a batch file to create this GenerateRewriteConfig.bat, which basically does this
COPY header.config + Map1.config + Map2.config + Map3.config + footer.config MySiteRewriteMaps.config
For current updates, I modify the corresponding MAP configuration file and run GenerateRewriteConfig.bat!
Now I'm working on an automated script to pull various cards into separate files (in case someone has TOO MANY cards and you need to use this tool). I will post an update in a few weeks.
Hope this helps someone!
source share