Using the Xampp (Apache).
If we want to access a page on our web server , which does not exist, then we should return an error of Page not found , and we should redirect it to a page error404 , that we have designed, in my case: error404.php
.htaccess code:
ErrorDocument 404 http://localhost:8081/daw/error404.php
Why does not it work with just putting the next sentence?
ErrorDocument 404 error404.php
I show the directory where I have the files, they are all at the SAME LEVEL.