Quick Tip: How to setup a 404 page with Umbraco and uSkinned

How do I set the Page Not Found page as the 404 page for my Umbraco theme?

uSkinned Member

There are two locations you need to configure this.

Step 1

In the web.config file at the root level of your website add the following inside the system.WebServer section:

<httpErrors> 
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" subStatusCode="-1" prefixLanguageFilePath="" path="/page-not-found/" responseMode="ExecuteURL" />
</httpErrors>

Step 2

In the following file:

~/Config/umbracoSettings.config

find:

<error404>****</error404>

and enter the ID of your 404 page.

It's as simple as that :)

comments powered by Disqus

Get started today

Join thousands of agencies, freelancers, enterprises & start ups worldwide who useĀ uSkinnedĀ Umbraco themes to deliver results.