Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Mike Stoddart 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
-
There is a php scriptlet at this site that redirects to a banner. http://php.lansystems.com/index.php?archive=error_404.inc
-
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
-
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