A
A
Anton Alekseev2016-09-27 06:19:03
Apache HTTP Server
Anton Alekseev, 2016-09-27 06:19:03

How to set up ErrorDocument 404 in Apache?

I wrote in .htaccess:
ErrorDocument 404 /404.html
Created a 404.html page.
The question is how to give a 404 error just when visiting /404.html without using php and other things. Simply means of apache. That is, not when the page is not found and apache displays this page and issues a 404, but when you just go to /404.html

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question