Multi-site Page Not Found

Usage

Enables website administrators to configure the Not Found (404) page from within the Umbraco back-office. This is achieved using a custom 404 handler.

This functionality requires a new Content Picker property (with the alias of "umbracoPageNotFound") to be added to your root node's document-type, (this is usually your "Homepage").

You can then select the Not Found (404) page using the Content Picker.

On the front-end, if a content node can not be found from the NiceUrl, then the NotFoundHandlers are actioned; until alternative content is found, otherwise a 404 error.

If a umbracoPageNotFound value (content node Id) is found, then the user is presented with the selected Not Found (404) page. Otherwise the default "handle404" handler is actioned.

To manually enable this functionality, add the following setting as the penultimate of the "NotFoundHandlers" section in /config/404handlers.config, (e.g. the one before the "handle404" entry):

<notFound assembly="uComponents.Core" type="NotFoundHandlers.MultiSitePageNotFoundHandler" />

Last edited Jan 31, 2011 at 9:51 PM by leekelleher, version 1

Comments

mblisscouk Jan 29 at 5:47 PM 
For version 5.x up the entry in the /config/404handlers.config file needs to be changed to:

<notFound assembly="uComponents.NotFoundHandlers" type="MultiSitePageNotFoundHandler" />

giroin Feb 20, 2012 at 11:18 AM 
Hi all,
I am trying with multiple nodes using different hosts with no luck. Any ideas on how to implement it correctly, do I need any settings in IIS too? Just to mention that still have the default IIS 404 error page.
Cheers, Giorgos

acandael Nov 21, 2011 at 8:25 AM 
As instructed in the documentation, I added a property of type Content Picker and with the alias umbracoPageNotFound to my homepage node and I added the line

<notFound assembly="uComponents.Core" type="NotFoundHandlers.MultiSitePageNotFoundHandler" />

to the config/404handlers.config file.

Instead of my 'custom page not found' I get an ugly iis 404 page not found page when I enter a non-exting page in the url (eg. www.webmove.be/home/apples

My website is an Umbraco 4.7.1 installation and I use uComponents v3

Have I configured the Mutlisite Page Not Found handler in a wrong way?

thanks for your help,

Anthony

UlrichEbsen Nov 9, 2011 at 9:36 PM 
I'm having trouble getting this to work running IIS in intgrated mode... works fine in classic. Should I do anything special to make work in integrated mode?

Myster Mar 16, 2011 at 8:35 PM 
I assume this is designed to work if there are multiple root nodes? I cannot get this to work (note I'm not using different hostnames.)
Also, I'd actually like to set the error page at any level (my region is root level, and language is second level) this would allow an error page per region.