Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Testing server wont display images!!

Posted 17 May 2006 06:14:46
1
has voted
17 May 2006 06:14:46 Derek McLean posted:
hi folks, can you help with this?
my images wont display in my testing server! but they display fine on the remote site (thankfully)

ok more detail:

when i right click the image on the remote site, the properrties show the url as

site-n.co.uk/images/pic.jpg

however on the testing server there is no image, just the little red x

i right click to see the properties, and the url is:

localhost/images/pic.jpg

This is wrong, and it should read

localhost/site-n/images/pic.jpg



i have several sites in my htdocs folder, so the site root should be localhost/site-n



Now, my site definition settings:

Local
=====
Site Name = site-n
local root folder = D:\webs\site-n
local images folder = D:\webs\site-n\images
http address = localhost/site-n

Remote
=====
Access=FTP
host = ftp.site-n.co.uk
host dir = /htdocs/
user, pass etc, all work ok, connects


Testing Server
=============
Server Model = PHP MySQL
access=FTP
host = 127.0.0.1
directory = /site-n/
user pass etc ok connects fine
url prefix = localhost-site-n



I have either done something stupid, not done something, or something like that! The only thing that changed (I upgraded my server btw but it all went seamlessly)was the site definition. Now like I say when I publish it keeps looking in the wrong path for the images...



Any help would be absolutely superb! It's 4am and I've been at this for far too long!

Cheers Everyone!!
The Del Boy

Live Forever or Die in the attempt

Replies

Replied 17 May 2006 06:41:46
17 May 2006 06:41:46 Derek McLean replied:
its something to do with the damned forward slash at the start of the image url property in dreamweaver. when i remove this it works. I have therefore made a new post a bit shorter and easier to digest than this one!
Cheers!

Reply to this topic