Set Custom 404 and 403 errors in appache

Source: Internet
Author: User
In appache, set the custom 404 and 403 error file structure as follows: the root directory of the server is htdocs, which has two folders: phpMyAdmin and w, where my website is placed under w, which I need to use. the htaccess configuration file defines your 403/404 page, so . HtaccessFile, add the content ErrorDocument 404/404 .html
ErrorDocument 403/403. html, and how to add two html pages under [c: 403. html 404. html. Now the problem is that it won't jump to the error page. how can I do this? please give me some advice. You can only use . HtaccessMethod configuration




Reply to discussion (solution)

. Htaccess
ErrorDocument 404/404 .html
ErrorDocument 403/403 .html

+ Htdocs
+ PhpMyAdmin
+ W
Index. php
. Htaccess
403. jtml
404. html

The moderator GG is amazing.

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.