Share the function and setting method of site 404 error page


404 page is to tell your visitors the requested page does not exist or link errors, and guide users to use other web page and not to close the window to leave.

2, Web service extension locking strategy prevents this request.

2, set up 404 points to a good design for the HTML file, the page is returned to the 404 status code. Now the basic IDC provider to provide 404 set of functions, directly upload files can be set. Set in IIs: open IIS manager –> click to set custom attribute –> 404 website; click the custom error page 404 selected options –> –> select and open the edit attribute set to URL –> –> URL; –> fill in the "/err404.html" and then click OK to exit the err404.html page to upload to the root directory of the web site. Here in the "message type" must choose "file" or "default", instead of "URL", otherwise, it will lead to a return to "200" status code.

HTTP 404 error means that the link to the page does not exist, namely the original "URL failure, this situation often happens, it is difficult to avoid, for example:" URL "generation rules change, file rename or move the location, link spelling error, lead to the original address URL cannot be accessed when the Web server; received a similar request, will return a 404 status code that tells the browser to request the resource does not exist.

: how to set the

1. for web content exists due to the path to visit the change, can be defined 404 error points to a dynamic page in IIS, using 301 permanent redirection jump in the page to a new address, the server returns a 301 status code.

"file to restore the lack of the correct position, to set up a network service. For users, you need to check the input network address is correct.

404 page to


1, not in the requested port access to the Web site.

3, 404 points to a dynamic page, such as error.asp, if not set in the page, just return the tips of the HTML code, will cause the page to return a status code of 200, which is not correct, we can increase the statement in the end display prompt content after: Response >

404 error page caused this error in general, there are three kinds:

3, MIME mapping strategy prevents this request.

Leave a Reply

Your email address will not be published. Required fields are marked *