How to Customize Error Page, Page Not Found and Access Denied in SharePoint 2010

There are many ways to customize these pages for example you can customize by code by creating a feature at web application scope or you can do it by power shell so let’s see the simple way.

First create three pages and place them in this path

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033\




Note: if you have multilingual site you need to place these pages in their language folder for example for Arabic

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1025\

Second Open SharePoint 2010 Management Shell with Farm Administrator User

Now For Custom page Not Found runs the following Power Shell:

$webApp = Get-SPWebApplication http://test 
$webApp.FileNotFoundPage = “Custom_NotFound.html”

For Custom Error Page, Access Denied page,.. All pages listed in the below image

Run the following Power Shell:


$webApp = Get-SPWebApplication http://test



[Updated in 26/1/2016] , For SharePoint 2013:

  1. Make sure to update the SharePoint Farm with April 2014 Cumulative Update(CU) or higher.
  2. Make sure to use this path /_layouts/15/ for your custom pages
    For example 
Comments (4)
  1. simple and usefull method, thank you Fadi

  2. Keith Hudson says:

    Is there a way to do customize the Access Denied and PageNotFound pages WITHOUT access to the server?

  3. says:

    Hi Keith ,

    I don't think so because this method only available at farm level (No sandbox solution) also you can refer this URL :…/microsoft.sharepoint.administration.spwebapplication.updatemappedpage(v=office.14).aspx

  4. PaulE says:

    For hints on doing this in SharePoint 2013, see my blog:…/sharepoint-2013-custom-layouts-pages-and-custom-mapped-pages.

    UpdateMappedPage now has an overload that takes a CompatibilityLevel value. 🙂

Comments are closed.

Skip to main content