The default error page of the IIS server is unfriendly. Many people will say when they see the default error page: the website cannot be opened! This part of traffic is lost in vain. However, if an error page is directly redirected to the homepage, It is unfriendly to search engines. Otherwise, the homepage will be blocked. Therefore, there are two ways to solve this problem:
1. If it is a blog or other content-based website, you can return a search box with 404 Errors for visitors to search. If it is an e-commerce website, you can return a progress bar with 404 errors to jump. These two methods take care of visitors and take into account SEO.
2. You can view the number of error pages on your website in Google webmaster tools.
The method for modifying the default error page is simple: Right-click the website to be managed on the IIS server, and set 404 to the corresponding error page in the custom error. There are two methods:
1. if you select an upload file, you can only use the file ending with .html or htm. Otherwise, code will appear when you access the error page. If you use this formula to set the error page, although the 404 status is not output in the .html file, the IIS server will automatically output the 404 status after execution.
2. If you select "URL" for "Message Type", you must use the asp file (because the 404 status can be set only in the asp file ), otherwise, the 200 status code is returned when you access the error page. Add the following to the asp file:
If you want the IIS server to regularly jump to the home page, there are two methods:
1. Redirect using refresh of meta tag
According to the Google Chinese Blog administrator, Yahoo uses this method to redirect.
2. Use js to redirect
Here is the explanation of the default IIS server error page.