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.
$webApp = Get-SPWebApplication http://test
$webApp.FileNotFoundPage = “Custom_NotFound.html”
$webApp.Update()
$webApp = Get-SPWebApplication http://test
$webApp.UpdateMappedPage([Microsoft.SharePoint.Administration.SPWebApplication+SPCustomPage]::Error,"/_layouts/1033/Custom_Error.html")
$webApp.Update()
No comments:
Post a Comment