The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Custom 404

Discussion in 'General Discussion' started by ntwaddel, Jan 30, 2005.

  1. ntwaddel

    ntwaddel Well-Known Member

    Joined:
    Nov 3, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Templeton, CA
    Is there anyway to point the 404 pages from within cpanel to any file you want? for example, if i wanted to do 404.php instead of 404.shtml or whatever it uses. Like if the customer already has the 404 page made, is there anyway to just point it to that file instead of doing the creator thing in cpanel.
     
  2. puzz1ed1

    puzz1ed1 Active Member

    Joined:
    Jan 31, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Thurrock, UK
    you can set it in httpd.conf or, for more control, .htaccess:

    ErrorDocument 404 /path/to/404.php
     
  3. ntwaddel

    ntwaddel Well-Known Member

    Joined:
    Nov 3, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Templeton, CA
    well duh :) I'm wondering if there is anyway to do it from WITHIN cpanel, like for a really newbie customer.
     
  4. whmapi.scripts

    whmapi.scripts Well-Known Member

    Joined:
    Sep 1, 2004
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    United Kingdom
    This thread: http://forums.cpanel.net/showthread.php?t=35122 might interest you if you would like to become a free beta tester? With this installed your clients can have 404.htm, 404.html, 404.shtml or a 404.php file located in public_html and it will be picked up ;) It also works with the 11 most popular errors and if your clients do not have an error page then you can place a "powered by my hosting company" ad on it :)

    Regards,
    CPSCRIPTS
     
  5. ntwaddel

    ntwaddel Well-Known Member

    Joined:
    Nov 3, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Templeton, CA
    i'll take a look at it
     
Loading...

Share This Page