Hello all,
My issue is that my external rewrite map config file is too large to run. First, a little background information to get some questions out of the way:
- I'm currently managing about 1400x 301 redirects (likely more will be added in the future). I understand that there is probably a more efficient way to do this, but suffice it to say that it isn't up to me.
- Some of the URLs in these key-value pairs can be quite long.
- The key-value pairs for the rewriteMaps are currently being stored in an external file (let's called it redirects.config).
- The maximum file size that will allow redirects.config to run is 250KB and I'm currently slightly above 300KB.
- I have written several rules in web.config to reduce the file size by a substantial amount, but I still need to reduce it by another ~60KB.
- I'm using IIS 7.5
Now, I have two questions:
1. Is there any way to store part of a 'key' URL in some type of variable, so that it doesn't have to be written out every line? (For example, for an example key="/landing1/landing2/landing3/landing4/landing5/index.html", is there some way to store "/landing1/landing2.../landing5/" in some type of variable to significantly reduce the character count?)
2. I understand that in IIS 7.5, there is a registry value that can be changed in order to increase the maximum size of a .config file above 250KB. One is located at HKLM\SOFTWARE\Microsoft\InetStp\Configuration\MaxWebConfigFileSizeInKB (REG_DWORD) and an alternative is located at HKLM\SOFTWARE\Wow6432Node\Microsoft\InetStp\Configuration\MaxWebConfigFileSizeInKB (REG_DWORD). The problem is, when I navigate to either of these locations, I don't have a Configuration folder and don't see the registry key MaxWebConfigFileSizeInKB, either. Am I doing something wrong in locating this key, or does it have to be added/activated/something before it will show up?
Thank you for your help!