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.

Animated Redirect Page Help

Discussion in 'General Discussion' started by Zekeman, Dec 14, 2013.

  1. Zekeman

    Zekeman Member

    Joined:
    Nov 13, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I have setup a custom 404 page... which is fine but its static... I now try to implement a custom 404 page with animation (js script) and it does not work.. Does Cpanel support Animated JS Custom pages? If so I have it set in a folder in /usr/local/apache/customerror and have all the required files in this folder. Am I supposed to have the JS somewhere else?

    Btw I do get the page to come up with no animation and css included. The paths set for the are set at href"=css/style.css" I even tried the full path where it lays and no go....

    Thanks for any insight...
     
  2. fabin

    fabin Active Member

    Joined:
    Nov 27, 2009
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Gods Own Country
    Custom css and js will work in it. It should definitely be a problem with path. Is there any 404 errors in access log?
     
  3. Zekeman

    Zekeman Member

    Joined:
    Nov 13, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Yes, its actually trying to use the user directory that the 404 is generated from instead of just the /usr/local/apache/custom directory that it is in.... Is there a way to force it to check just that directory for all websites that get 404 on the cpanel machine?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Are you attempting to make this a global 404 error page for all websites? If so, browse to the following option in Web Host Manager:

    "WHM Home » Service Configuration » Apache Configuration » Include Editor"

    Add the following value to "Pre VirtualHost Include":

    Code:
    Alias /errorfolder /usr/local/apache/htdocs
    ErrorDocument 404 /errorfolder/404.shtml
    Then, edit "/usr/local/apache/htdocs/404.shtml" with your custom entries.

    Thank you.
     
Loading...

Share This Page