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.

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:
    543
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you enable error pages for your site through cPanel >> Error Pages
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,174
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,174
    Likes Received:
    1,295
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page