Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    35

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

    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.

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Check if there is any rules specified in the .htaccess file under public_html directory for domains in question.

  3. #3
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    or it may be that your 404 page is actually re-directing people back to the home page.

  4. #4
    Member
    Join Date
    Jan 2006
    Posts
    35

    Default

    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?

  5. #5
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Look in your httpd.conf, perhaps there is an ErrorDocument 404 statement in there?

  6. #6
    Member
    Join Date
    Jan 2006
    Posts
    35

    Default

    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.

Similar Threads & Tags
Similar threads

  1. 404 pages for certain packages?
    By Parahosting in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-30-2007, 03:22 PM
  2. I'm getting mail that's sent to addresses that don't exist...
    By JPigford in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-09-2006, 08:58 PM
  3. backups don't exist
    By BattousaiX in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-20-2006, 07:04 AM
  4. Making 404 Error Pages etc... Don't want to break anything :(
    By seastar in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 04-18-2005, 08:27 PM
  5. 404 Pages
    By wanderingstar89 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-12-2004, 10:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube