Is the best place set the 404 error page for SharePoint within the web.config customError section or is there a configuration setting on the site collection/ web application?
What is a 404 Page? A 404 page, or error page, is the content a user sees when they try to reach a non-existent page on our website. It's the page your server displays when it can't find the URL requested by the user. To learn more about 404 errors themselves and how they play into SEO, see our guide to crawl errors.
The first 4 of the HTTP “404” actually indicates a client error like a misspelled URL or a moved page. The “0” points to a general syntax error like a spelling mistake, and the last “4” indicates the specific error in the family of “40-” errors which includes “400: Bad Request” and “403: Forbidden.”
please have a read at this blog
pasted:
In your MOSS server, make a copy of %systemdrive%\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\1033\sps404.html and call it my404.html
Create a Virtual Directory in IIS under your MOSS root web application. For example /errors
Create a Console Application and insert the following code and run it in MOSS server
System.Uri webApplicationUri = new Uri(http://MyMOSSServer/); SPWebApplication webApplication = SPWebApplication.Lookup(webApplicationUri); webApplication.FileNotFoundPage = "my404.html"; webApplication.Update();
Now when you browse to a page that doesn't exist, you should expect to be brought to the redirected page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With