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.

404 error pages

Discussion in 'General Discussion' started by beckybeib, Mar 3, 2009.

  1. beckybeib

    beckybeib Registered

    Joined:
    Mar 3, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    I live in Germany
    Is it possible to customise my 404 error pages and if so where and how do I do this?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    In the "Advanced" section of the cPanel interface, click on "Error Pages." Here you can customize any error page, including the one shown for HTTP Error 404.
     
  3. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    Hello,

    I know this can be set under cPanel for each domain on a server, but is there a way to set a 404 error page globally? for all sites on the server?

    Thanks.
     
  4. alan-tor

    alan-tor Active Member

    Joined:
    Dec 7, 2004
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    You could probably do this using the skel directory and an htaccess file, as well as the error page files. This would then apply to newly-created accounts, although not retroactively to existing accounts.
     
  5. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    Where can I found the skel directory? so.. adding a 404.shtml file to this directory would be enought to avoid 404 page error on new sites, right?


    Thanks.
     
  6. JPC-Stefan

    JPC-Stefan Member

    Joined:
    Oct 29, 2008
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    You can check the path of skeleton directory at your WHM
    Main >> Account Functions >> Skeleton Directory

    The skeleton directory will be "/root/cpanel3-skel/".

    The content of skeleton directory will be the default content of all newly created accounts on your server. You will have to add 404.shtml page in "/root/cpanel3-skel/public_html/".
     
Loading...

Share This Page