[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Question_Warning.GIF (404) *GLOBAL CUSTOM ERROR PAGE INSTRUCTIONS*



> I checked the archive but most requests were of custom 404s and
> such where doesn't help much.
> >

> >EnigmaNetworks.Com

I realize this doesn't fix your existing page but will help you create a new
'404' page to replace it. For grins I searched the archives and found bits
and pieces with lots of 'search the archives' type comments, it's funny,
there are more of those comments in the archive than I could actually find
helpful information, so here we go.

ErrorDocument 401 /cobalt_error/authorizationRequired.html
ErrorDocument 403 /cobalt_error/forbidden.html
ErrorDocument 404 /cobalt_error/fileNotFound.html
ErrorDocument 500 /cobalt_error/internalServerError.html

These are the main global error pages your users see when they find a dead
link, mis-typed url..etc. To create replacement pages, your own custom
'404', use your favorite html editor and create the page, make sure any
graphics you insert have a complete url
(http://www.mydomain.com/images/image.gif) and not c:\\localfolder\image.gif
or /images/image.gif. in the url. You can even use a redirect in the meta
tags to automatically send them to a different page. Modify and insert this
in between your <head> tags in your html:

<META HTTP-EQUIV="refresh"
content="5;URL=http://www.yoursite.com/newpage.htm";>

Use the exact file names as above (fileNotFound.html, etc) and upload them
to your /usr/admserv/html/.cobalt/error/ directory on the server.

Notice that /.cobalt is a hidden directory, if you have a problem ftp'ing
the files there or getting it to show up in your ftp client don't worry, do
this. FTP the files to your /web directory in your main website, or wherever
you can easily find them then issue this command via telnet/ssh:

cd /home/sites/www.yourdomain.com/web   (to the directory where you placed
the file)
ls    (make sure you see your file)

cp fileNotFound.html /usr/admserv/html/.cobalt/error

or you can just move it if you don't want to copy the file

mv fileNotFound.html /usr/admserv/html/.cobalt/error

Insert whichever filename you are cp/mv in place of fileNotFound.html...etc.

Now type in a bogus url (www.yourdomain.com/badpage.html) and you should see
your custom page.

Sometimes searching the list archives can be rather frustrating and obtuse
due to list user's differing verbage and syntax so I thought I would post
this in plain English.

Brad Galbraith
American Web Host
Web Host Supply