alexjamesdf
02-23-2007, 03:28 PM
Hi there people, I'm hoping someone can help me with this most basic of concepts I am now very confused with.
Relative paths:. When you insert an image onto a web page it should create a path relative to where the document is yes? Hence if your website is called
dreamweaveriskillingme.com and the index.html page has an image on it stored in the same directory, the document path for this image should be simply "/imagename.jpg"...
Now if you have a subdirectory named testing,
dreamweaveriskillingme.com/testing/
and you have an index.html page inside 'testing' and it uses an image in the same directory the path should be "/imagename.jpg" yes? This is what I thought anyway, and when I test it locally it works fine, but when its uploaded this happens:
http://www.joeldevlin.com/testing/
the image path is "/023.jpg" because the image is in the same directory as the index.html...
The image is definitely there on the server:
http://www.joeldevlin.com/testing/023.jpg
So why is it a broken link?
I'd really appreciate some help on this, I just dont understand whats going on and I've never had this problem before.
Cheers
Relative paths:. When you insert an image onto a web page it should create a path relative to where the document is yes? Hence if your website is called
dreamweaveriskillingme.com and the index.html page has an image on it stored in the same directory, the document path for this image should be simply "/imagename.jpg"...
Now if you have a subdirectory named testing,
dreamweaveriskillingme.com/testing/
and you have an index.html page inside 'testing' and it uses an image in the same directory the path should be "/imagename.jpg" yes? This is what I thought anyway, and when I test it locally it works fine, but when its uploaded this happens:
http://www.joeldevlin.com/testing/
the image path is "/023.jpg" because the image is in the same directory as the index.html...
The image is definitely there on the server:
http://www.joeldevlin.com/testing/023.jpg
So why is it a broken link?
I'd really appreciate some help on this, I just dont understand whats going on and I've never had this problem before.
Cheers