This is a discussion on "Images not displaying" within the Graphics and 3D section. This forum, and the thread "Images not displaying are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Images not displaying
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Images not displaying
Hi,
I am having a problem getting images to display in a site, the following works fine, <img src="images/header.jpg" width="800" height="75" /> But <img src="/images/header.jpg" width="800" height="75" /> does not (note the / at the start of images). The problem is that the whole site used to be served on a different server and uses the second example (it all worked fine) now however we have swapped servers and are having the problems. Does anyone have any ideas as to why it's not displaying? I have checked and double checked that the file exists in the images directory. Thanks |
|
|
|
|||
|
Re: Images not displaying
I'm guessing you have swapped from a Windows server to a Linux/Unix variant.
That leading '/' has a totally different meaning. On Windows it just means the current directory. On Linux/Unix it means the root directory. You need a block find and replace tool to change all the image links. Last edited by ukgeoff; Oct 23rd, 2006 at 16:14. |
|
||||
|
Re: Images not displaying
../images/header/
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: Images not displaying
Already tried what you sugested moojoo but again it came up without the image, both servers are running linux although i dont know which variation, and
the document_root is set properly. Its not too much of an issue, will just have to change all the links but if anyone has any further ideas... |
![]() |
| Tags |
| images not displaying, site root problems |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multiple rollover images change multiple images | joshlindem | Web Page Design | 4 | Apr 18th, 2008 09:11 |
| Images not displaying correctly | leighhobson89 | Web Page Design | 2 | Nov 29th, 2007 16:33 |
| Why displaying nothing? | begeiste | PHP Forum | 17 | Oct 1st, 2007 19:22 |
| problem with blog displaying images | remo | PHP Forum | 3 | Nov 24th, 2006 12:00 |
| Uploading and displaying images. | robukni | PHP Forum | 8 | Jan 18th, 2006 12:39 |