As a prerequisite, I have placed the page_404,html page in the root directory, and the input 127.0.0.1/page_404.html can be opened
Now the problem is that I follow many of the online tutorial settings that don't work at all
Many online say this:
Modifying the httpd.conf configuration file
#ErrorDocument 404/404.html Remove # This page is placed by default under the root directory
Can modify the name of the 404.html to xxxx.html (xxxx is legal for any name)
Tutorial Click here to view
Is the author in gibberish, see his introduction is very simple, is not left a small hand ah, I am!
Here is my httpd.conf configuration
Because the file is too large, so it can only be transmitted to the network, analysis of this situation does not look at the file is not a drop
Click to download
The following is my change, in fact, is very simple, according to the author's meaning is to change the line, but why not, he is cheating everyone to play
Reply to discussion (solution)
Is the directory incorrect, or should your directory be enclosed in double quotation marks??
ErrorDocument 404 "/page_404.html"
It is best to write in the. htaccess when testing (with change, without restarting Apache)
ErrorDocument 404/404.php
Of course you need to make sure the target file exists
Use?? Lu???