Rectangle 27 0

apache ErrorDocument 404 404.php is not working in .htaccess file in PHP?


ErrorDocument 404 /404.php

So what one need to do is find out the absolute path and set it accordingly.

the /404.php path may not be the absolute path to your htdocs folder root but instead the root of your filesystem. This may be, based on your configuration, e.g. /home/htdocs/ or ~ and so on.

Note