Thursday, March 19, 2015

HTTP 404 (Page Not Found) Error Pages in SharePoint 2013

HTTP 404 (Page Not Found) Error Pages in SharePoint 2013,Create Custom Error Page “PageNotFoundError.aspx” in SharePoint 2013 Publishing Site,Replace default PageNotFoundError.aspx with Custom Error Page in SharePoint 2013
 In this post, will take a deep look how to create a new 404 page and set it as default for a site collection.
Default PageNotfound\404 page - By default, all the Publishing sites contain a default Error\404 page “PageNotFoundError.aspx” page which is added to the “Pages” library (See below).
404 Error page  SharePoint 2013This page can be modified to add some custom text.
“Error Page” Content Type - To allow users to Create a new 404 Error page, Publishing Sites now contain a new Content Type “Error Page“.This Content type Inherits from “Page” Content type and has a typical layout of a Page Not found or 404 pages. To find this Content type Navigate to Site Settings -> Content Types -> Error Page.
"Error Page Content type- SharePoint 2013"
Create a New PageNotFound or 404 Page – To Create a new 404 page admins can navigate to the “Pages” Library and under the “Files tab” select “New Document”.In the “New Document” drop-down menu select “Error Page” (see the screen below).
"404 Error Page SharePoint 2013"
"404 Error Page SharePoint 2013"

Once you have Created a new Error Page you can modify it by simply clicking the page in the pages library and editing it.
"Edit 404  Page SharePoint 2013"

Once done Check In and Publish the page.
Set Custom Error Page as default - Update – There are few Options to set default Page Not Found Error page for a site with a Custom Error Page in SharePoint 2013. See the Options at Replace default PageNotFoundError.aspx with Custom Error Page in SharePoint 2013.

No comments:

Post a Comment