Click to See Complete Forum and Search --> : 404 error from root urls


Chatterjee
03-23-2001, 05:02 AM
suppose I have an html page at the following location:
http://www.mysite.com/html/script.html

and it has a <IMG SRC="/images/box.gif"> tag... It's suppose to grab the image from http://www.mysite.com/images/box.gif

However, instead, it shows a broken image (box with no image)... I'm not sure whether I set up Apache to go to the appropriate directory if there is a "/" at the beginning of a link. Any ideas?

-S

mrBen
03-23-2001, 05:09 AM
It uses the standard Linux file naming conventions, so /images looks in the images directory under your root filesystem. What you need to do is look in the relative directory - simply put a . in front, ie. ./images, and then if you move into a directory use ../ to look in the directory above.

HTH

Energon
03-23-2001, 09:38 AM
/ does not mean / as in your root directory, it means / as in what you put as your DocumentRoot directive... make sure you have that setup correctly and that you spelled the names absolutely correct...

you don't want to put ./ either, so ignore that guys post...

Chatterjee
03-23-2001, 02:04 PM
Energon,

You're absolutely right. It turns out that I completely forgot about case-sensitivity (duh!)

I couldn't figure out for the life of me what was going on. Thanks for your help!

-S

Energon
03-23-2001, 07:00 PM
no problem... it catches everyone at some point... :)