ERRMSG: 404 Errors After Enabling Search Engine Friendly (SEO) URLs in IIS7
If you enable Search Engine Friendly URLs within InstantForum.NET or InstantKB.NET under Internet Information Services 7 (IIS7) you may receive a 404 error when navigating to pages that use URL Rewritting. For example….

To resolve this problem and to ensure all requests are processed by the URL rewriting HTTP module please follow the steps below…
- Ensure your running InstantForum.NET or InstantKB.NET under a "Integrated" IIS7 Application Pool.
- Ensure the <modules> section within your web.config reads exactly as shown below. Please ensure the "runAllManagedModulesForAllRequests" attribute is set to "true" within the <modules> element as highlighted below...
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
<remove name="ScriptModule" />
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="SecurityModule" preCondition="managedHandler" type="InstantASP.Common.HttpModule.SecurityModule, InstantASP.Common" />
<add name="ServiceModule" preCondition="managedHandler" type="InstantASP.Common.HttpModule.ServiceModule, InstantASP.Common" />
<add name="EmailModule" preCondition="managedHandler" type="InstantASP.Common.HttpModule.EmailModule, InstantASP.Common" />
<add name="RewriterModule" preCondition="managedHandler" type="InstantASP.InstantForum.HttpModule.URLRewritterModule, InstantASP.InstantForum" />
<add name="ForumModule" preCondition="managedHandler" type="InstantASP.InstantForum.HttpModule.ForumModule, InstantASP.InstantForum" />
</modules>
</system.webServer>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
<remove name="ScriptModule"/>
<remove name="Session" />
<add name="Session" type="System.Web.SessionState.SessionStateModule, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="EmailModule" type="InstantASP.Common.HttpModule.EmailModule" preCondition="managedHandler" />
<add name="ExceptionModule" type="InstantASP.Common.HttpModule.ExceptionModule" />
<add name="SecurityModule" type="InstantASP.Common.HttpModule.SecurityModule" />
<add name="ServiceModule" type="InstantASP.Common.HttpModule.ServiceModule" />
<add name="KBServiceModule" type="InstantASP.InstantKB.HttpModule.ServiceModule" />
<add name="URLRewrittingModule" type="InstantASP.InstantKB.HttpModule.URLRewritterModule" />
</modules>
</system.webServer>
We would suggest using "Integrated" application pools within IIS7 if you intend to use the SEO Friendly URL Rewriting feature within InstantForum.NET or InstantKB.NET. If you choose to use a "Classic" .NET application pool this requires that handler mappings are sorted & configured correctly within the web.config and may require changes to the StaticFileHandler. This is not recommended as it could impact serving of other file types on your web site.
Ensuring the "runAllManagedModulesForAllRequests" is set to true within your web.config and running InstantForum.NET or InstantKB.NET under an "Integrated" application pool within IIS7 should resolve any 404 error messages you may be seeing under IIS7. For further resources on this issue please see the links below. Of course if we can assist with any questions please don't hesitate to open a support ticket or contact us.
Related Links
Add Your Comments
|
Comments are disabled for anonymous users.
|
|
Details
Product: InstantKB.NET, InstantForum.NET
Version: All Versions
Type: ERRMSG
Level: Novice
Article not rated yet.
Article has been viewed 4,408 times.
Last Modified:22 January 2011
Last Modified By: Ryan Healey
Options
|