IIS: Setting the 404 error page under IIS8.5 _ PHP Tutorial

Source: Internet
Author: User
IIS: Set the 404 error page under IIS8.5. IIS version: IIS8.5 problem description build a test website, a total of 2 pages (index. php and 404.php). the default homepage is index. php when accessing index. php and 404. when using php, IIS service IIS version: IIS 8.5 problem description

Build a test website with two pages (index. php and 404.php). the default homepage is index. php.

When accessing index. php and 404. php, the IIS server can respond normally, indicating that there is no problem in configuring the PHP environment in IIS 8.5.

Access index. php

Access 404.php

In addition, my error page configuration results are as follows:

Normally, when accessing a non-existent page (such as 127.0.0.1/aaa. php), the iis server finds that the file aaa. php does not exist. Therefore, it should request 404.php

That is, 127.0.0.1/aaa. php ---> 127.0.0.1/404.php

However, when I access 127.0.0.1/aaa. php, the following error is reported:

Solution

Double-click "error page" Settings --> select the option with status code 404 --> Select "edit function settings" in the action bar on the right --> Select "Custom Error Page"

As shown in:

Original address: was a civil engineer reprint please indicate the source: http://www.cnblogs.com/hongfei/p/3765771.html

Issue description 8.5 build a test website with a total of 2 pages (index. php and 404.php). the default homepage is index. php when accessing index. php and 404. in php, the IIS service...

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.