Web Hosting Talk







View Full Version : redirecting file not found


honging
07-05-2001, 01:15 PM
Is there anyway to redirect all 'file not found' entries to a certain page without the use of .htaccess on RAQ?

Thanks.

huck
07-05-2001, 02:25 PM
You can make a system-wide change in httpd.conf or use .htaccess to allow your users to make custom error changes. One solution is to set a standard page, e.g. errors.html as your error page. Include this in your virtual site configurations -- that way the end-user can modify their error page.


I use a simply meta-refresh tag in my error page that redirects the user to the home page of my site. This way they know there is an error. You could use a Javascript to return the user to where they were last or send them through a cgi to collect info and email the site admin.

For more info:
http://www.netmechanic.com/news/vol2/server_no6.htm

http://httpd.apache.org/docs/custom-error.html

Alan - Vox
07-05-2001, 03:16 PM
another way is to find cobalts 404 page and change it, thats what i did with mine.

If only i could remember where they were.

honging
07-05-2001, 04:38 PM
Yeah, what I meant was what SplashHost said. Does anyone know where Cobalt's 404 page is? Thanks :)

donbene
07-05-2001, 10:53 PM
On a Raq4, the 404 page is
/usr/admserv/html/.cobalt/error/fileNotFound.html

The other error pages in the same directory are:
authorizationRequired.html
internalServerError.html
cobalt_fileNotFound.html
forbidden.html


Don