How do I set an HTTP 404 error?

Source: Internet
Author: User

404 Error Tips page and 301 Redirect is the technical means used in SEO optimization work of website. Ding-Feng Network small d in the previous "Linux space graphics detailed explanation how to set 301" in detail, today this article will focus on how to customize the site 404 error page How to do.

In order to facilitate customers to easily customize their own 404 error page, the following will be in accordance with your site's use of the environment to explain, please according to their actual situation, select the corresponding situation operation. (If not clear, you can also consult the peak network expert engineers to answer your questions)

First, define the 404 Error prompt page before the preparation

1, make a 404 error page. First, you need to make a 404 error prompt page yourself. If you have not, small D has prepared a for you, please click on the "Peak network self-made 404 error page Demo page data Package" (the package contains a variety of already done, 404 error Tips page example).

2. Upload the good 404 error page to the Web site root directory. OK, when you have your own 404 error page, then, please upload the 404 error page to the site root directory, if you do not use the FTP tool to upload data, please click on "How to upload FTP data" To view, how to upload data.

Second, configure 404 error prompt, let the HTTP 404 function Take effect

1, if you are using the peak network of the Hong Kong Windows Environment of ASP space, ASP. NET space, PHP space, then you follow the tutorial "How to set page 404 error prompt page under Windows Space", to do.

2, if you are using the Tripod peak network in the pure Linux environment PHP space, please follow the tutorial "How to Set page 404 error page in Linux environment", to do.

3, if you are using the Peak network of Hong Kong VPS host, Cloud server, standalone server, multi-IP server products, please follow the tutorial "How to set up the site 404 error page iis6.0/iis7.5 above", to do.

Third, how to detect the 404 Error prompt Page setting effective method

If you follow the configuration tutorials provided by peak network small d, you can use the following 2 methods to verify the success:

1, use webmaster tools, to detect whether successful. For example, open the tool link, enter a URL that does not exist, and see the results of the ToolTip detection.


2, directly in the Internet Explorer, access to the site domain name plus a nonexistent URL, see the page is not your definition of the 404 Error prompt page, if it is, also indicates success. such as: http://www.domains.com/12311434faffd.html

Thank you for reading, about the 404 error page settings, introduced here. For more information, please contact Mei QQ2881064157

How do I set an HTTP 404 error?

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.