Login
or
Register
Your Cart
|
InstantForum.NET 2012
InstantKB.NET 2011
Active Directory
Live Demos
Download
Purchase
InstantForum.NET Hosting
InstantKB.NET Hosting
New Ticket
Documentation
Knowledgebase
Support Services
Support Plans
Contact Us
Community Forums
Our Blog
On Twitter
About Us
Our Customers
Customer Comments
Contact Us
Support resources & Common FAQs
Welcome Guest
Login
|
Register
Home
Knowledgebase
Documentation
Videos
Submit Ticket
Latest
Popular
Search
Tags
Glossary
Home
/
Knowledgebase
/
InstantForum.NET
/
Error Messages
/
ERRMSG: 404 Errors After Enabling Search Engine Friendly (SEO)...
ERRMSG: 404 Errors After Enabling Search Engine Friendly (SEO) URLs in IIS7
ERRMSG: 404 Errors After Enabling Search Engine Friendly (SEO) URLs in IIS7
Share:
Tweet
Share
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…
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...
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
.
Rate this Article:
Tags:
Error Message
,
IIS7
,
SEO URLs
,
URL Rewriting
Related Links
Wildcard script mapping and IIS 7 integrated pipeline
Making URL rewriting on IIS 7 work like IIS 6
How to do URL rewriting on IIS 7 properly
Enabling Search Engine Friendly URLs
Add Your Comments
Comment require
login
or
registration
.
Details
Product:
InstantKB.NET, InstantForum.NET
Version:
All Versions
Type:
ERRMSG
Level:
Novice
Article not rated yet.
Article has been viewed 2,457 times.
Last Modified:
22 January 2011
Last Modified By:
Ryan Healey
Options
Send by email...
Email Article
Print Article
Bookmark Article
Social Bookmarks...
Social Bookmarks
Comments RSS
Powered By InstantKB.NET 2011-2 © 2012
Execution: 0.125.
16 queries.
Compression Disabled.