Loading...

All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Changes between Version 6 and Version 7 of 404Handler


Ignore:
Timestamp:
2010-04-06 18:39:52 (4 years ago)
Author:
steve@…
Comment:

Added more configuration information for the 404 handler

Legend:

Unmodified
Added
Removed
Modified
  • 404Handler

    v6 v7  
    117117for the same url will be redirected directly. 
    118118 
     119Note! This feature is only available in the EPiServer CMS 4 version. 
     120 
    119121== Configuration == 
    120 Add the following settings to web.config 
    121 {{{ 
    122 #!text/xml 
    123     <httpModules> 
    124       <add name="Bvn404Handler" type="BVNetwork.FileNotFound.Handler.CustomFileNotFoundHandler, BVNetwork.EPi404" /> 
    125     </httpModules> 
    126 }}} 
    127  
    128122'''Note! ''' For EPiServer CMS 5, the only appSetting you might want to configure is the `EPsBvn404HandlerPage` to point to your own 404 page. The module is enabled by default and should work out of the box as long as you have a `CustomRedirects.config` file in your site root directory. 
    129123{{{ 
     
    158152</appSettings> 
    159153}}} 
     154 
     155=== IIS 5/6 Settings === 
     156Add the following settings to web.config 
     157{{{ 
     158#!text/xml 
     159    <httpModules> 
     160      <add name="Bvn404Handler" type="BVNetwork.FileNotFound.Handler.CustomFileNotFoundHandler, BVNetwork.EPi404" /> 
     161    </httpModules> 
     162}}} 
     163 
     164Change the custom 404 error.  
     165 * Open IIS Manager, right click your site, select Properties 
     166 * Select the Custom Errors tab 
     167 * Find the 404 entry in the list, change the following settings: 
     168  * Message type: Url 
     169  * Url: `/bvn/filenotfound/notfound.aspx` 
     170 * Select the Home Directory tab 
     171 * Click the Configuration button 
     172 * If the .aspx extension is not in the "Application extensions" list, add it it with the following settings:[[BR]][[Image(aspx.png)]][[BR]]If the extension is already present, make sure it has the same settings as above. 
     173 
     174=== IIS 7 / 7.5 === 
     175Make sure you have the following configuration in your web.config file: 
     176{{{ 
     177#!text/xml 
     178<configuration> 
     179        ... 
     180        <system.webServer> 
     181                <modules runAllManagedModulesForAllRequests="true"> 
     182                        ... 
     183                        <add name="BVNetwork.EPi404" 
     184                                 type="BVNetwork.FileNotFound.Handler.CustomFileNotFoundHandler, BVNetwork.EPi404" /> 
     185                </modules> 
     186                ... 
     187                <httpErrors errorMode="Custom"> 
     188                        <remove statusCode="404" 
     189                                        subStatusCode="-1" /> 
     190                        <error statusCode="404" 
     191                                   prefixLanguageFilePath="" 
     192                                   path="/bvn/filenotfound/notfound.aspx" 
     193                                   responseMode="ExecuteURL" /> 
     194                </httpErrors> 
     195        </system.webServer> 
     196</configuration> 
     197 
     198}}} 
     199 
    160200 
    161201== Requirements ==