Results 1 to 5 of 5

Thread: Setting Up Error Page For Website

  1. #1
    BawA's Avatar FST Pioneer BT Rep: +1
    Join Date
    Jun 2003
    Location
    Some Where but not here
    Age
    41
    Posts
    4,213
    how to setup a costume Error page for ma website? :helpsmile:


    "You can be mad as a mad dog at the way things went; you can swear and curse the fates, but when it comes to the end, you have to let go"
    Benjamen button

  2. Internet, Programming and Graphics   -   #2
    Poster
    Join Date
    Jan 2003
    Location
    Belle Vernon, PA, USA
    Posts
    638
    Originally posted by Apache's httpd.conf
    #
    # Customizable error response (Apache style)
    #  these come in three flavors
    #
    #    1) plain text
    #ErrorDocument 500 "The server made a boo boo.
    #  n.b.  the single leading (") marks it as text, it does not get output
    #
    #    2) local redirects
    #ErrorDocument 404 /missing.html
    #  to redirect to local URL /missing.html
    #ErrorDocument 404 /cgi-bin/missing_handler.pl
    #  N.B.: You can redirect to a script or a document using server-side-includes.
    #
    #    3) external redirects
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    #  N.B.: Many of the environment variables associated with the original
    #  request will *not* be available to such a script.
    If you have access to the config file, you can follow add your ErrorDocument directives right below that section, if you want.

    If you don't have access to the config file, but you're allowed to use .htaccess files, you can create one in your "web root" directory, and add lines like the following:
    Code:
    ErrorDocument 500 /booboo.html
    ErrorDocument 404 /missing.html
    ErrorDocument 403 /backthefuckup.html
    The paths to the files should be full paths. For example, if you want to keep all the error documents in their own directory called "errdoc", you'll need to do this:
    Code:
    ErrorDocument 404 /errdoc/404.html

  3. Internet, Programming and Graphics   -   #3
    Poster
    Join Date
    Oct 2003
    Location
    UK
    Posts
    1,158
    Depends on your hosts cpanel i think

  4. Internet, Programming and Graphics   -   #4
    BawA's Avatar FST Pioneer BT Rep: +1
    Join Date
    Jun 2003
    Location
    Some Where but not here
    Age
    41
    Posts
    4,213
    Sorry but little noob in this stuff, i have apache handler in ma Cpanel
    Image Resized
    [img]http://img25.photobucket.com/albums/v74/bawa69/apache.jpg' width='200' height='120' border='0' alt='click for full size view'>

    What to do there :helpsmile:


    "You can be mad as a mad dog at the way things went; you can swear and curse the fates, but when it comes to the end, you have to let go"
    Benjamen button

  5. Internet, Programming and Graphics   -   #5
    BawA's Avatar FST Pioneer BT Rep: +1
    Join Date
    Jun 2003
    Location
    Some Where but not here
    Age
    41
    Posts
    4,213
    Yooooooooooooooooooooo, i did it
    Thank to "Cl1mh4224rd"


    "You can be mad as a mad dog at the way things went; you can swear and curse the fates, but when it comes to the end, you have to let go"
    Benjamen button

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •