Custom 404 page not found error page for SharePoint

Hi,

We are developing a SharePoint site for a small company since the site in under development user are often getting page not found 404 error and immediately they are starting to contact IT Department and we have to explain every time that we are making a changes to the pages.

To avoid this conflicts I am planning to replace a page not found error page to something custom page which can explain the user that we are working on the page so that they do not need to contact us are worry.

Hey there!
Use this code

<!-- _localBinding -->
<!-- _lcid="1033" _version="" -->
<html>
<head>
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8" />
<meta HTTP-EQUIV="Expires" content="0" /> 
<noscript>
    <meta http-equiv="refresh" content="0; url=/Pages/Custom404.aspx?noscript=1" />
</noscript> 
<script language="javascript" src="/_layouts/1033/init.js"></script>
<script language="javascript" src="/_layouts/1033/core.js"></script>
<script language="javascript">                              
    var redirectURL = "/Pages/Custom404.aspx";
    STSNavigate(redirectURL);
</script>
</head>
<body>
</body>
</html>

Or create an aspx file named as Custom404.aspx under “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\LAYOUTS”.

1 Like