You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 14/umbraco-cms/tutorials/custom-error-page.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,19 +36,19 @@ This method will use a 404 page created via the backoffice.
36
36
37
37
1. Navigate to the **Settings** section.
38
38
2. Create a new "_Document Type with Template_".
39
-
3. Name the Document Type **404 Page**.
40
-
1. Note: By default, Umbraco will generate the alias for this DocType as simply "Page," omitting the "404." You may want to manually adjust the alias to "404Page."
41
-
4.\[Optional] Add properties on the Document Type.
39
+
3. Name the Document Type **404**.
40
+
4. Before saving the Document Type, adjust the alias to "Page404." Umbraco will not allow you to create a Document Type with a numeric alias.
41
+
5.\[Optional] Add properties on the Document Type.
42
42
1. In most cases, the 404 not found page would be static.
43
-
5. Fill out the Template with your custom markup.
44
-
6. Create another **Document Type**, but create it without the Template.
45
-
7. Call this Document Type **Statuscodes**.
46
-
8. Open the **Structure** Workspace view.
47
-
9. Check the **Allow at root** option.
48
-
10. Add the **404 Page** Document Type as an **Allowed child note type**.
49
-
11. Navigate to the **Content** section.
50
-
12. Create a **Statuscodes** content item called **Statuscodes**.
51
-
13. Create a **404 Page** content item under the **Statuscodes** content.
43
+
6. Fill out the Template with your custom markup.
44
+
7. Create another **Document Type**, but create it without the Template.
45
+
8. Call this Document Type **Statuscodes**.
46
+
9. Open the **Structure** Workspace view.
47
+
10. Check the **Allow at root** option.
48
+
11. Add the **404 Page** Document Type as an **Allowed child note type**.
49
+
12. Navigate to the **Content** section.
50
+
13. Create a **Statuscodes** content item called **Statuscodes**.
51
+
14. Create a **404 Page** content item under the **Statuscodes** content.
52
52
53
53
### Set a custom 404 page in the configuration
54
54
@@ -117,7 +117,7 @@ public class Error404Page : IContentLastChanceFinder
117
117
118
118
// Find the first notFound page at the root level through the published content cache by its documentTypeAlias
119
119
// You can make this search as complex as you want, you can return different pages based on anything in the original request
0 commit comments