My .htaccess file for 404 error page doesnt work

You might want to see this answer:

You can only use .htaccess in the lamp-poc (Apache HTTPD) project.