I'm new to SharePoint administration and have updated my custom error pages per this guide. It works just fine for the 404 page, but should this also cover all other SharePoint error pages (like say, a database error)?
Also, how can I simulate an error so that I can verify the proper custom error page is displayed? I'm attempting to close a security vulnerability identified on our SharePoint Foundation 2010 server so I need to be able to prove that whatever fix I implement is working before putting it into production.
Here are the steps from the link above for reference:
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” $webApp.Update()
Run the following Power Shell:
$webApp = Get-SPWebApplication http://test $webApp.UpdateMappedPage([Microsoft.SharePoint.Administration.SPWebApplication+SPCustomPage]::Error,"/_layouts/1033/Custom_Error.html") $webApp.Update()
Edit: No one knows? I still haven't been able to find a solid answer through googling. :( Still no takers? I put a bounty on it...