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

Expand / Collapse

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



UserCPEditMemberPhoto_MemberPhotoToolTip

By Ryan Healey
InstantASP Support
 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….
 

 
 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.NET 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.NET 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.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.
 
 That's It!
 
 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

Email Article



Social Bookmarks



About InstantASP



We develop market-leading ASP.NET community & customer support apps. We help businesses of all sizes build engaging online communities and deliver exceptional customer support. Our community app, InstantForum allows you to quickly add rich social features & branded discussions to your existing web site. Our self-service support portal InstantKB is designed to help reduce inbound customer support by allowing you to quickly & easily publish articles, FAQs & documentation to help your customers. Our forthcoming Influx product currently in beta allows businesses to manage, prioritize & respond to inbound customer support enquires received via email, phone or the web.

Start your free 30 day free trial
InstantASP Logo
© 1999-2013 InstantASP Ltd. All rights reserved.
Can we help?

+44 ( 0 ) 1565 832 827


Mon-Fri 9am-6pm GMT

Connect with us...
  • Twitter
  • Facebook
  • Google+
  • RSS