An important task on any website build is to create a good looking 404 page and configure it. Luckily, Umbraco does this out of the box very easily with some slight configuration.
First, if you try running your Umbraco website and typing any old rubbish as the Url, you should see this error page.
Obviously, that is pretty ugly and you wouldn't want to use that in production. First, you will want to create the page in Umbraco so the content can be updated, and secondly, you don't want your website looking like dog shit,
In this guide, I'm going to use a generic content page as my 404 page. In the real world you may use a standard content page for your 404 design, or you could create your own 404 document types and templates.
First, open your Umbraco back-end, go to the Content section, create a new page and call it 404, add any content you want and hit the 'Save and Publish' button. Next, go to the 'Properties' tab for the page and go to the PageId section.
Now in Visual Studio, open up the 'Config' folder, 'umbracoSettings.config' file. The first thing you should see is a section called 404, like so:
In the 404 config element, add the page id we created from earlier, in my case, this would look like this:
Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge