PDA

View Full Version : Setting Up Error Page For Website



BawA
05-07-2004, 11:17 AM
how to setup a costume Error page for ma website? :helpsmile:

Cl1mh4224rd
05-07-2004, 11:53 AM
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:

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:

ErrorDocument 404 /errdoc/404.html

djweiser
05-07-2004, 03:43 PM
Depends on your hosts cpanel i think :blink:

BawA
05-08-2004, 06:09 AM
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'> ('http://img25.photobucket.com/albums/v74/bawa69/apache.jpg')

What to do there :helpsmile:

BawA
05-08-2004, 09:04 AM
Yooooooooooooooooooooo, i did it :D :D :D :D :D :D
Thank to "Cl1mh4224rd" ;)