Koozali.org: home of the SME Server

404 File Not Found page

Mike Stoddart

404 File Not Found page
« on: October 26, 2000, 07:54:06 AM »
How do I setup a 404 file not found page in E-Smith? I'd like to re-direct the user when they experience this problem.

Thanks

Kevin McClain

RE: 404 File Not Found page
« Reply #1 on: October 26, 2000, 08:04:21 AM »
There is a php scriptlet at this site that redirects to a banner.  http://php.lansystems.com/index.php?archive=error_404.inc

Charlie Brady

RE: 404 File Not Found page
« Reply #2 on: October 26, 2000, 08:19:06 AM »
Mike Stoddart wrote:

> How do I setup a 404 file not found page in E-Smith? I'd like
> to re-direct the user when they experience this problem.

You add a custom template fragement, or make an add-on RPM to add a template fragment.

The required template fragement you will need to determine from Apache documentation. And you can find documentation on customising templates at http://www.e-smith.org/custom/.

Regards

Charlie

Damien Curtain

RE: 404 File Not Found page
« Reply #3 on: October 26, 2000, 08:21:48 AM »
cut from another 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 (") 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://some.other_server.com/subscription_info.html
#  N.B.: Many of the environment variables associated with the original
#  request will *not* be available to such a script.

try putting the one approriate to you in a template

--
 Damien