LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error document (https://www.linuxquestions.org/questions/linux-newbie-8/error-document-68246/)

weazy 06-26-2003 01:50 PM

error document
 
i spse this is more of an apache question but here goes anyway.

just want to do a custom error page.

my .htaccess is located in my cgi-bin and looks like:

Options ExecCGI Includes
ErrorDocument 400
http://www.site.com/errors/error.shtml
ErrorDocument 404
http://www.site.com/errors/error.shtml

then if i go to a page that doesnt exist say www.site.com/ks.htm

i get the regular error page rather than the one I would expect give the above errordocument specs.

thanks.

Crashed_Again 06-26-2003 02:48 PM

Did you change the ErrorDocument in httpd.conf ? I think that might solve your issue.

david_ross 06-26-2003 02:53 PM

There should also be no line feed after the error number and you don't nee dthe full url - eg:
Code:

Options ExecCGI Includes
ErrorDocument 400 /errors/error.shtml
ErrorDocument 404 /errors/error.shtml



All times are GMT -5. The time now is 08:49 AM.