I've got a strange situation. I'm trying to create a custom 404 page and tried doing so in cpanel. When I get to a page not on the server it simply redirects all bad URLs and such requests to the home page. There is nothing in my htaccess file that I can see doing this and even including an Error 404 statement to redirect the error doesn't redirect the page. Here is what I have in my htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+) profiles/index.php?folder=$1&%{QUERY_STRING} [L]

php_value memory_limit 64M


So if I put in this it would work, but no luck:

ErrorDocument 404 error404.htm