Apache Configuration 404 Page

Source: Internet
Author: User
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

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.