SharePoint 2010 404 error

Hi.

I want to develop custom 404 error page with same UI as my sharePoint Site and to show a message for "File not Found"

but where to

July 8th, 2013 2:02am

Hi,

The 404 error page exists in %systemdrive% \Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033(English language ID)\sps404.html

Below is the method replacing the built in 404 page:

1. Copy the Sps404.html file to a temporary folder.
2. Rename the Sps404.html file. Such as My404.html
3. Customize the My404.html file using an HTML editor.
4. Save it back to above address
5. Run the following PowerShell cmdlet to update the change:
$webapp =Get-SPWebApplication <a href="http://:<port">http://<serverUrl>:<port>
$webapp.FileNotFoundPage = "Custom404.html"
$webapp.update()

Thanks,

Kenon Yin

 

Free Windows Admin Tool Kit Click here and download it now
July 8th, 2013 6:37am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics