Phpnow1.5.6 how to set the 404 exception page

Source: Internet
Author: User
Phpnow1.5.6 how to set the 404 error page? In phpnow1.5.6, how do I set the 404 error page? Directly in http. in the conf file, when there is only one site on the server, it will be okay. when two sites are configured, it will not work. I still don't understand what experts know, each virtual host is set or each virtual host directory contains 404 phpnow1.5.6. how do I set the 404 error page?
In phpnow1.5.6, how do I set the 404 error page? Add it directly in http. conf. when there is only one site on the server, it will work.
When two sites are configured, they won't work. why don't you know if you have any experts?

------ Solution --------------------
Each virtual host has
Or each virtual host directory contains 404 processed files.
------ Solution --------------------
Create a. htaccess file in the virtual root directory of the site and write the following code:
RewriteEngine on

ErrorDocument 404/404 .htm

Just drop 404.htm to the root directory.

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.