Getting UrlRewritingNet to work on WinHost and IIS7

Discussion in 'Site Programming, Development and Design' started by digitalcolony, Jul 15, 2010.

  1. If you are migrating from IIS 6 and are using the UrlRewritingNet.UrlRewrite code, you will soon discover it doesn't work. Short of rewriting your application, I discovered a quick fix.

    From Fixed error - UrlRewritingNet.UrlRewrite on IIS7:

    Put this inside <modules> in the Web.Config file:

    Code:
    <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter"/>
    
     
  2. Ray

    Ray

    Wouldn't this be easier if you drop the "UrlRewritingNet.UrlRewrite" and recreate it using the IIS 7 URL Rewrite module in IIS 7 Manager?
     
  3. Possibly, but I was under the gun to move a working site ASAP. Also, I don't believe you can connect IIS 7 Manager to the test URL without moving over the domain.

    I am now free to replace the code without having any links break.
     
  4. Ray

    Ray

    Last edited by a moderator: Oct 14, 2015

Share This Page