[MT-users] images in archives

David Jennings david at alchemi.co.uk
Tue Jan 27 14:03:08 GMT 2004


Jem,

At 8:53 am +0000 27/1/04, Jem Finer wrote:
>This is a bit weird . . . got a root email this morning about images 
>not being found in the archive for certain entries.
>
>These are 2 very recent entries - last week - and are there to see 
>on the front page . . . for some reason they've also been archived - 
>but the images don't load . . . is this normal ?

The reason for this behaviour is that you're using 'relative' links 
for your image files, and you'd be better off using 'absolute' links.

e.g. instead of
<img src="images/708.jpg" width="775" >

the HTML for the entry should be
<img src="http://cosmolog.org.uk/images/708.jpg" width="775" >

The first of these works fine from the front page because the browser 
looks for the image file in a directory relative to 
http://cosmolog.org.uk/ and it successfully finds it there. But from 
the archives page, the browser looks for the image file in a 
directory relative to http://cosmolog.org.uk/archives/ (i.e. 
http://cosmolog.org.uk/archives/images/) and this directory doesn't 
exist, so the browser can't load the images.

If you use absolute links for images, the browser will be able to 
find them from any page or directory.

Hope that makes sense.

Cheers, David



More information about the MT-users mailing list