How to modify the 404 error page to the site [2005-04-22 8:58:45 AM] Article Editors: NetHacking Author: Unknown Source: 271214748'blog
We have encountered them again and again. Now let's take a look at what they are in the same, and different reasons why they are different from another website.
Each Internet user will encounter the "404-- unrecognizable file" in some place. Perhaps it will be displayed on informal Microsoft versions: "This page cannot be displayed." Or browser display error is: "page error." Not every website announces an error in the same way. Try to enter a wrong URL (eg, delete back .com and type a string of garbled) and view the wrong description of the website. For example, type http://www.google.com/adfadf, will get the default IE 404 error page (if you use IE; "and the Netscape error page is Bare-Bones 404 page). Type http://www.ipswitch.com/adfadf, you will get the IPswitch home page.
Error 404 is the most common set of standardized configurable HTTP protocol errors, positioning between 400 and 505. When these errors are standardized, the WEB server handles 404 errors will ultimately depend on the network administrator. This is why it is called "configurable." The most common web server software, Apache, controls HTTP errors through small text files located in public_html directory. HTACcess. The redirect syntax is very simple: "Error Code] [URL]". The URL that allows the error code can point to any one with a valid address. Typically, it points to a custom page in a working directory, such as "404error.html".
However, if you point the URL to the home page address (especially index.html), an error address returns the user to the home page of the site. This is the setting of ipswitch.com: "ErrorDocument 404 /index.html".
Set up
Apply the description of the .htaccess file to the Apache server. The default error page of the Microsoft IIS server can be modified by selecting a website directory in the Internet information service, selecting the Custom Error Properties page, selecting the error message according to your needs, then edit the path to the modified file. In any case, the network administrator can provide you with the details you need to modify the 404 error page.
If you are seeking more than a regular way, your entire site is committed to create innovative 404 error pages. Then visit the "404 Research Lab" is a wise choice. Almost everyone has become a network management. Web environments are cheap and have a lot of excellent web development tools. But even if you have a 404 error page correctly, IE cannot display it correctly. Instead, the page specified by the site is displayed, and IE selects the 404 error message that itself default. "This page cannot be found" error is actually generated by Internet Explorer, not a web server. Microsoft's argument is that the default HTTP error message is correct, but it is not very large. The default HTTP error message is always displayed: 404 Unable to find, the requested URL cannot be found on the server. There is nothing else. No redirect, no other prompt information. Although the Microsoft version needs to read a legitimate file, the information is more effective.
Meet limit
The default 404 error page displayed by Internet Explorer depends on two variables controlled by web users. The first, you can drag the scroll bar to "Show Friendly HTTP Error Message" by entering the Internet option and selecting a Advanced tab, and cancel the check box to select this feature. The unselected check box will release the original HTTP message. However, as a web designer, you can't assume that the user has canceled this option; at the same time, as an Internet Explorer user, you can't think of the web designer has designed friendly user information. The second key variable is the size of the error page, in bytes. The key value in the Windows Registry is HKEY_LOCAL_MACHINESOFTWAREMICROSOFTINTERNET ExplorerMaineRrosoft, and the 404 error page size is set to 512 bytes. If the 404 error page of the site exceeds 512 bytes, Internet Explorer will display this error page; if it is not exceeded, then it is useful.
Remember to only provide sufficient information to determine the actual size of the file only to be provided only in Windows Explorer. A file with less than 1kb display is 1KB, and the right mouse button is oriented on the file and select Properties to determine the actual number of bytes of the file. Once the 512 bytes are exceeded (increasing hidden HTML comments will be successful), detailed error messages will be prepared for Internet Explorer and other browsers for viewing.