Custom 404 error page

Discussion in 'Apache' started by blaze718, May 21, 2009.

  1. #1
    I searched it via google and found some article tutorial how to create a custom 404 error page. But It forces me to use a specific link as the error page for example notfound.html. What I want is If you go on a not found page It stays on the page but shows my custom error page.
    Here's an example:
    http://www.flyffworld.com/456
     
    blaze718, May 21, 2009 IP
  2. blaze718

    blaze718 Peon

    Messages:
    560
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No one knows about to do this?
     
    blaze718, May 22, 2009 IP
  3. Tropp

    Tropp Well-Known Member

    Messages:
    108
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #3
    The Method will vary depending on server setup, I noticed port 2082 is open on the server hosting the site in your sigs so I will assume its running cpanel.

    create a html error page and copy the code into the this section of your cpanel

    http://yourdomainnamehere.com:2082/frontend/x/err/index.html if you are running x3 theme etc just change that part of the url as needed

    This will create a 404.shtml file in your public_html directory that can be edited whenever

    Hope this helps
     
    Tropp, May 22, 2009 IP
  4. catgnome

    catgnome Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    httpd ( Apache config file ) :
    # 404 Error
    ErrorDocument 404 /apache_error/404.html
    Code (markup):
    Once you've created your custom .html file, restart & enjoy :p
     
    catgnome, May 23, 2009 IP
  5. Tropp

    Tropp Well-Known Member

    Messages:
    108
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Assuming they have root access it'll work
     
    Tropp, May 23, 2009 IP
  6. catgnome

    catgnome Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Assuming they want to create such a "feature" .. they have root access :rolleyes:
     
    catgnome, May 23, 2009 IP