Hello. I have Apache web server installed on my computer and I am designing websites using PHP and SQL, and I would like a .htaccess file to redirect a user to a 404 page if an invalid URL is typed. I have my .htaccess file in the same directory as all the other files, this is what is contained in it:
ErrorDocument 404 /404.php
However, that does not seem to be working. I think it may be a problem with Apache configuration file but nothing seems to be working. Help!