View Complete Thread
  • Re: URL Rewrite Outbound Rules w/ Compression

    Mar 15, 2010 05:23 PM|ruslany|LINK

    Outbound rewriting can only be applied on un-compressed responses. If the response is already compressed then URL Rewrite Module will report an error if any of the outbound rules is evaluated against that response.

    Oubound rewriting cannot be used together with IIS static compression.

    Outbound rewriting can be used together with IIS dynamic compression by using the following workaround:

    1. Set the LogRewrittenUrlEnabled registry key:
      reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Rewrite /v LogRewrittenUrlEnabled /t REG_DWORD /d 0
    2. Make sure that dynamicCompressionBeforeCache property is set to false for the /system.webServer/urlCompression configuration element.
    3. Re-order the IIS modules to have URL Rewrite module (RewriteModule) run before Dynamic Compression module (DynamicCompressionModule). In the IIS Manager user interface in the modules's ordered view the Dynamic Compression module should be above the URL Rewrite module.