[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Solution - 404 Error
- Subject: Re: [cobalt-users] Solution - 404 Error
- From: "affordablewebsitesolutions.com" <ski@xxxxxxx>
- Date: Wed Mar 28 09:58:01 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
The 404 error handling is a must for any webmaster and it is not cobalt
specific (way apache) but here is a solution anyway
place an .htaccess file in the folder for the errors with the line in it
ErrorDocument 404 /helpme.shtml
helpme.shtml contains the following without the pre tags
this file should be ssi enabled and include the following code to help
generate an email
you can use any pagename.shtml but it's easiest to use ssi
<pre>
<html><body>
<H2>File Not Found</H2>
The page <STRONG><!--#echo var="REQUEST_URI" --></STRONG> was not found
when clicking on a link at the page <!--#echo var="HTTP_REFERER" -->
<p>
The page may exist but you have followed a bad link. We are sorry.
<P>
Please <A HREF="mailto:ski@xxxxxxx?subject=page not
found&body=<!--#echo var="HTTP_REFERER" --> has a link to a bad URL
<!--#echo var="REQUEST_URI" --> please tell us where the correct page is and
fix the link if possible">click here to email us this error</A> for a prompt
reply about
the malformed link.
</body></html>
<pre>
there are many variations of the html but the jist is that the .htaccess
file goes to the file specified, and by using ssi, relevant data can be
generated to fix the error. other errors, separate folders and invoking
scripts are all possibilities. Customizing the sitewide errors is possible
too, see http://httpd.apache.org/docs/misc/custom_errordocs.html
other generic links
http://httpd.apache.org/docs/mod/mod_include.html
http://www.carleton.ca/~dmcfet/html/ssi2.html
http://hoohoo.ncsa.uiuc.edu/docs/tutorials/includes.html
sorry if you get this as junk html in your email.....
email me if you need help and to the whiners, geeeeeeezzzzzzzzzzzzzz.....