[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] Error Docs and Images (WAS: no subject)
- Subject: Re: [cobalt-developers] Error Docs and Images (WAS: no subject)
- From: Brian Curtis <admin@xxxxxxxxxxx>
- Date: Wed Jan 24 07:17:14 2001
- Organization: Pomfret Computer Technologies, LLC
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Hello Al,
Tuesday, January 23, 2001, 9:17:25 PM, you wrote:
AJ> Hi guys, anyone knows why when I got to a url such
AJ> http://www.domain.com/real_folder/another_Real_Folder/another_Real_Folder/name_of_a_non_existant_file
AJ> the browser redirect the 404 error file to my error fileNotFound BUT all
AJ> pictures are not displayed including the logo. Whereas if we were to type
AJ> http://www.domain.com/real_folder/bad_file, then everything displays cool.
AJ> The bottom line is that the more we go deep into the file structre, the more
AJ> I get this strange behaviors; although I'm defining the ErrorDocument in the
AJ> virtualhost as:
AJ> ErrorDocument 404 /folder_name/fileNotFound.html
AJ> Could some one please suggest something... The above line should always
AJ> query from the site's root / so I don't know what seems to be a problem...
You probably coded your <IMG> tags and whatnot with relative URLs.
Try using absolute calls to all included content.
i.e.:
<IMG SRC="/full/virtual/path/to/my.gif">
instead of:
<IMG SRC="images/my.gif"> or <IMG SRC="../images/my.gif">
You error document will build a relative call from the current path,
and that's most likely what's tripping you up.
--
Best regards,
Brian Curtis