Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rasmus Østergård 19 posts 81 karma points c-trib
    Dec 11, 2012 @ 23:06
    Rasmus Østergård
    0

    UrlRewriteModule vs. upgrade from 4.9 to 4.11

    I my current solution I have this cofiguration in the web.config

     

    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules runAllManagedModulesForAllRequests="true">
          <add name="umbracoRequestModule" type="umbraco.presentation.requestModule"/>
          <add name="viewstateMoverModule" type="umbraco.presentation.viewstateMoverModule"/>
          <add name="umbracoBaseRequestModule" type="umbraco.presentation.umbracobase.requestModule"/>
          <!-- SNIP: stuff left out-->
          <!-- Rewriting must be last - otherwise umbracoRequestModule has not initialized UmbracoContext -->
          <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" preCondition=""/>
        </modules>

    Notice that UrlRewriteModule is place after umbracoRequestModule because the rewrite rules (.net code) uses the UmbracoContext

     

    After upgrade to 4.11 it looks like this:

    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules runAllManagedModulesForAllRequests="true">
          <add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,umbraco" />
         
          <!-- Rewriting must be last - otherwise umbracoRequestModule has not initialized UmbracoContext -->
          <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" preCondition=""/>
        </modules>

    The rewriting rules are still executed correct - but when rewriting the url it doesn't have any effect - I just get an 404

     

    Has something changed here?

Please Sign in or register to post replies

Write your reply to:

Draft