Menu

Search

InstantASP Support

Help & Support


404 Errors After Enabling Search Engine Friendly (SEO) URLs in IIS7


Known Issues

NOTE: This articles refers to older versions of InstantForum & InstantKB. Newer versions of InstantForum & InstantKB don't require any configuration to enable SEO URLs. We have left this content live to assist customers who may be migrating an older version of our software to a newer environment.

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

Resolution

To resolve this problem and to ensure all requests are processed by the URL rewriting HTTP module please follow the steps below…
  1. Ensure your running InstantForum.NET or InstantKB.NET under a "Integrated" IIS7 Application Pool.
  2. 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...

InstantForum 2010

 <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>

InstantKB 2011

 <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>

Notes

We would suggest using "Integrated" application pools within IIS7 if you intend to use the SEO Friendly URL Rewriting feature within InstantForum or InstantKB. 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.

That's It!

Ensuring the "runAllManagedModulesForAllRequests" is set to true within your web.config and running InstantForum or InstantKB 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



Optionally provide private feedback to help us improve this article...

Thank you for your feedback!


Comments require login or registration.

Details

Product: InstantKB, InstantForum
Version: All Versions
Type: ERRMSG
Level: Novice
Article not rated yet.
Article has been viewed 17K times.
Last Modified: Last Year
Last Modified By: Ryan Healey

Options

Similar Articles


Tags