Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Custom Error Docs

  • 17-08-2001 6:47pm
    #1
    Registered Users, Registered Users 2 Posts: 654 ✭✭✭


    Right, I need to set my own custom error 404 and 500 pages.
    I know it involves a .htaccess file and all that, but my "knowing things" ends there.

    Gamers Europe :: Keeping It Simple


Comments

  • Closed Accounts Posts: 59 ✭✭acidweb


    Create a file called .htaccess in the root directory of the server (the one you refer to as '/') and enter your error handlers in the following format, one per line:

    ErrorDocument [3-digit code] [action]

    For example, you can point to a custom 404 page like this:

    ErrorDocument 404 /errors/custom404.html

    You can also simply have it display some other text:

    ErrorDocument 404 "Sorry, this page doesn't exist.

    Make sure you begin the text with a quote (").


    Helpful, I hope so!

    Peter
    www.acid.ie


  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    If you have access to the httpd.conf, it's better to do it there, less resource intensive dontcha know.

    http://httpd.apache.org/docs/mod/core.html#errordocument

    adam


  • Registered Users, Registered Users 2 Posts: 654 ✭✭✭DS




Advertisement