Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to disable custom error pages

Discussion in 'General Discussion' started by 9072997, Nov 26, 2016.

  1. 9072997

    9072997 Registered

    Joined:
    Nov 26, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    cPanel Access Level:
    Website Owner
    I am a user with a cpanel x account (i am not the host). I enabled custom error pages one day to play around with them a bit, but now I would like to disable them. I tried simply deleting the 404.shtml and other files from public_html, but now my error pages include the line "Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request." I suspect this is because apache is still looking for the xxx.shtml files. Any ideas on how to remove that.
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you enable error pages for your site through cPanel >> Error Pages
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You can delete the custom pages from the account's public_html directory via FTP or File Manager. For example, here's the path for the custom 404 error page:

    Code:
    /home/username/public_html/404.shtml
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. 9072997

    9072997 Registered

    Joined:
    Nov 26, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    USA
    cPanel Access Level:
    Website Owner
    If I go to cPanel -> Advanced -> Error Pages, s16.postimg.org/htgagj3zp/snapshot3.png I only have the option to edit the error pages, not enable or disable them.
     
    #4 9072997, Nov 29, 2016
    Last edited by a moderator: Nov 30, 2016
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,937
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Check to see if an entry for "ErrorDocument" exists in the account's .htaccess file, and then remove it if it does.

    Note the image suggests you are using the X3 theme. You may want to ask your hosting provider to update the system to the latest version of cPanel and ensure the account is assigned the Paper Lantern theme.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice