Forums

This topic is locked

problem with path due to extra /

Posted 17 May 2006 06:38:38
1
has voted
17 May 2006 06:38:38 Derek McLean posted:
hi there, quick question:

my remote site's root is in the htdocs folder
all my testing server's sites (i have several) are in the htdocs/namerofsite folder

because they are in a folder up from htdocs, when i publish my site, and go to view a page,
on the the remote site i can see the image, but not the testing server

the url should be localhost/sitename/images/image.jpg
but it shows as localhost/images/image.jpg

i worked out that it is because in dreamweaver the image shows as:

/images/image.jpg

but if i edit it to read

images/image.jpg

suddenly it works fine. It is as if the / takes it right back to the htdocs folder and not the nameofsite folder

is there any way to either

A) make dreamweaver stop putting stupid forward slashes in where they're not welcome?
or B) configure apache to say 'hey man! htdocs/sitename is the root for that site, not htdocs!' ?

Replies

Replied 07 Nov 2006 00:56:25
07 Nov 2006 00:56:25 Steve C replied:
I have the same thing, with all links and associated files. I thought it may be something to do with the site setup, but it now happening with every new site. Starting to be a real pain.
If anyone has any ideas, that would be grand.

/site_img/image.jpg

so when you test your site it show this in the browser address bar localhost/site//site_img/image.jpg


Cheers
S
Replied 07 Nov 2006 01:06:36
07 Nov 2006 01:06:36 Steve C replied:
never mind, fixed it. It was the document-relative path that was set to root.
If anyone else has this problem, refer to you help file of here
www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15595

cheers

Reply to this topic