Forum Moderators: phranque

Message Too Old, No Replies

help with image & upload file/folderpath

after moving servers, can't figure out correct upload path

         

richards1052

11:18 pm on Nov 11, 2005 (gmt 0)

10+ Year Member



I've just moved servers and the friend whose virtual server I'm sharing has created a diff. folder structure than I had on the old server. As a result, the images aren't displaying AND I cannot figure out what the folder/filepath should be for uploading new images.

My old URL format used to be:

http://www.example.com/blogname/images/photoname.jpg

When I look into ftp at the new server, the folder structure for the images folder now says this under "Remote Site":

/domains/example.com/public_html/blogname/images/

It's the 'domains' folder that's messing things up for me. I don't know how to work around it. I've been trying to reach my friend w/o success to figure this out.

I was wondering whether someone might be able tell from the above what the folderpath structure should be for displaying existing images on the server & for uploading new ones.

If you'd like to look at the real filepath & blog site just shoot me a sticky...

rocknbil

12:00 am on Nov 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just to clarify, are you saying you did
<img src="http://www.example.com/blogname/images/photoname.jpg">

If you did, the path should still resolve to the same location.

however if you did
<img src="/blogname/images/photoname.jpg">

and / begins at the domains directory, it looks like you have three options:
<img src="http://www.example.com/blogname/images/photoname.jpg">
<img src="/domains/blogname/images/photoname.jpg">
<img src="../images/photoname.jpg">

The third probably has higher maintenance as it's going to vary depending on where you call it from. That example is for a page or script called from the blogname directory. For something called from your domain root it would be
<img src="images/photoname.jpg">

It is entirely possible that the server may be configured so the leading / actually aliases to the domain root, in which case /blogname... would work (presuming not, as that appears to be the problem.) Shouldn't be that hard to figure out, try one of the above and whatever works apply it to everything. :-)

richards1052

6:48 am on Nov 12, 2005 (gmt 0)

10+ Year Member



In the images I've previously uploaded to my blog, I used the first example you cited...a full url. It should work but alas it doesn't. Guess I'll have to wait for the server's owner to help me fix it. I was hoping I might be able to figure this out on my own. Oh well.

Just to be safe, I tried all yr other suggestions & none of them displayed the image. Thanks for trying to help.

rocknbil

6:41 pm on Nov 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I used the first example you cited...a full url. It should work but alas it doesn't.

So are you SURE the DNS is updated? (you probably are, but . . . ) When a domain is hosted the very least you can count on (err . . usually) is the domain root resolves to the domain root url.

Try a small experiment, move a single file and image from

/domains/example.com/public_html/blogname/test.html
/domains/example.com/public_html/blogname/images/test.jpg

to

/domains/example.com/blogname/test.html
/domains/example.com/blogname/images/test.jpg

then see if that full url works.

richards1052

8:16 am on Nov 13, 2005 (gmt 0)

10+ Year Member



move a single file and image from

/domains/example.com/public_html/blogname/test.html
/domains/example.com/public_html/blogname/images/test.jpg

to

/domains/example.com/blogname/test.html
/domains/example.com/blogname/images/test.jpg


Not sure I understand you fully. Since my "blogname" folder is WITHIN the "public_html" folder do you mean that I should create a new "blogname" folder in the "example.com" folder (one level up)? Because there is no such 'blogname.com' folder now in the "example.com" folder.

And then do you mean me to move an image & file from the "public_html/blogname" folder to the "example.com/blogname" folder?

Sorry for not following you perhaps it's my lack of technical experience in these matters.

richards1052

10:20 am on Nov 13, 2005 (gmt 0)

10+ Year Member



I fixed the problem. I'd changed the permissions for the Images folder. When I reset them to 755 then the images displayed correctly.

But I'm still having problems with what the image upload filepath should be in my Wordpress upload interface. As a result, I can't upload new images using my blog publishing tool. Would you have any suggestions based on the data I mentioned in my first post here?