Establish a custom fault tolerant page for the website

xiaoxiao2021-03-06  107

Since frequent page updates and columns are adjusted, the website may often have some "dead link" - that is, the page that cannot be accessed. In this case, the browser receives a page title "Unable to find the web page", while reporting an "HTTP 404 - Unrecognized File" error message. Anyone who has been updated by the netizens must have seen the following information on this famous page:

"Unable to find a web page You are searching, renovating, renamed or temporarily unavailable. Please try the following ..."

This page is not aesthetically pleasing, and it has not been empty. In fact, we can use the custom page instead of this error report page of the web server, which maintains both the relatively complete interface style, and highlights the error information, and it seems that our website has certain technical content.

Customization This page is actually very simple. Take IIS5.0 / 6.0 as an example, just modify the 404b.htm file under Windows Server 2000/2003 [Winnt / Windows] / Help / Iishelp / Common folder! It should be noted that once this page is modified, this machine's IIS all sets of websites, if there is an empty link, it will be guided to this page. Since this page belongs to a public "system file", the link that appears in this page should use an absolute link. If there is a picture in the page, you can build an images folder under the [WinNT / Windows] / Help / Iishelp / Common folder, and place it here, display the statement of the image as:

Now there are many websites already do this, customized pages often put some advertising information, the browse is still very big. Watch the "custom fault tolerant page" effect, you can visit http://www.why100000.com ("100,000 Why" Computer Learning Network) website, for example, type http://www.why100000.com/abc See the fault tolerant page. Author: Zhang QQ: 9365822 Msn: zhangking@hotmail.com personal home page: http: //www.why100000.com ( "A Hundred Thousand Whys" Computer Learning Network) Other website: http: //sogo99.com ( "Sogou 99 "Network Portal) 2004.10.18

转载请注明原文地址:https://www.9cbs.com/read-104579.html

New Post(0)