How to solve the default error page of IIS server

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.