Some Accounts Not Generating 404 For Pages That Don't Exist

ambition13

Active Member
Jan 24, 2006
35
0
156
Hello,

Some of the accounts on my server you can just make up a file such as http://www.domainname.com/madeupfile.html and it will show the home page instead of a 404 error.

For other accounts, most of which came from another cpanel box that I copied over, the correct 404 is shown.

I imagine this is a setting somewhere that I have been unable to locate. Does anyone know how to set all of the accounts to show 404s for pages that don't truly exist?

Thanks in advance.
 

ambition13

Active Member
Jan 24, 2006
35
0
156
I have checked the .htaccess files and made sure they aren't doing anything weird.

Let me clarify from above that they are not redirecting 301 or 302 to the home page, but that www.domain.com/madeupfile.html actually is it's own url however the content is the same as the home page.

Any other suggestions?
 

ambition13

Active Member
Jan 24, 2006
35
0
156
In my httpd.conf, the ErrorDocument 404 statement is commented out.

# 2) local redirects
#ErrorDocument 404 /missing.html
# to redirect to local URL /missing.html
#ErrorDocument 404 /cgi-bin/missing_handler.pl

I think that is the proper setup. Should those be commented out?

Again, some of the accounts on my server do serve the correct 404 error pages when a page that doesn't exist is requested. There are just a couple that serve the same document as the home page with the non-existing url.

I have looked through the cpanel account options, the httpd.conf, and the .htaccess files on each site and can't find anything weird.