How can I customize the default HTML file for Error 404 (file not found)?

Posted in: Linux
By dePoPo
Mar 10, 2009 - 12:47:19 PM

Q: [QUBE3] How can I customize the default HTML file for Error 404 (file not found)?

A: Original document from the SUN knowledgebase

If you are not the administrator of that box you may be able to accomplish this by creating a .htaccess file that makes use of Apache's"ErrorDocument" directive. You can find information on "ErrorDocument" at:http://www.apache.org/docs/mod/core.html#errordocument

If you are the administrator of the RaQ (not just a site administrator) and you want to modify the error documents for ALL sites on it, you must belogged in as root, and edit the appropriate file.Qube 2, RaQ 2, RaQ 3 and RaQ 4:/usr/admserv/html/.cobalt/error/fileNotFound.html

Qube 3: /usr/sausalito/ui/web/error/fileNotFound.html

Please note that there may be more than one version of the file, toaccomodate languages other than English. For example, fileNotFound.html.fr would be the same file, but in French.



Visitor Comments