Apache Configuration 404 Page
Here we teach you to configure your own 404 pages
First of all, this Apache version of Me is 2.4.17
The first step:
Locate the Apache installation directory, enter, locate the Conf directory, enter, Notepad open httpd.conf
Step Two:
Search the Rewrite_module module (remove the previous # number).
Step Three:
Modify directory allowoverride for all, note that there are many directory in the configuration file, do not change the wrong, otherwise it will not take effect, can be used for reference.
Fourth Step:
Write a. htaccess file under your site's root directory, file content:
ErrorDocument 404/404.html (404 and/Middle with a space )
Here's how to build a. htaccess file, if so, please ignore it directly!
Open an empty Notepad, and when you are finished, click Save As
Note: Save type changes to all Files!!!
One final step:
Restart the Apache service, then try it and have success.
Apache Configuration 404 Page