Question:
How to change my URL to relative paths?
dios_et_dios
2006-11-23 08:06:33 UTC
Okay, so I designed my website on Microsoft Publisher and uploaded it via an FTP client to the servers. I have three folders on the server: logs, index_files, and unstained-ministries.com. I put all of the files (index files, images, ect.) in all three of the folders because I was not sure which to put them in. However, my webpage will come up to the home page but will not go to any other (it says they are not availible) and none of the pictures show. Somebody suggested that I change the links to relative paths, but I don't know how to do this. Can somebody help me fix my problem.
Four answers:
r0ders
2006-11-23 08:14:08 UTC
oops totally mixed up with absolute and relative path-



relative path is you have to determine the location of the file your calling for e.g

files/images/image.jpg

and the location of the file which is calling it for example files/html/file.html

you have to call this image in this file the relative path will be





absolute path is http://www.domainname.com/folder/files.html

Its basically instead of doing something like this which specify just the folder



I actually specify the website and folder where to find it.

Some thing like



for e.g you see the yahoo logo on top

its absolute path is



i hope i explained it correctly this time. lol.
comn8u
2006-11-23 08:11:22 UTC
click on unstained-ministries.com and create a folder inside there. Then put your files in there. Depending on your hosting providers settings, unstained-ministries.com should be your file folder. If that don't work then....





create new folders along side the three folders you see, do not save files in already created folders. Those folders are for something else.

Create a folder named whatever you want and put your files in there.



Then refer to those files by

/yourfoldername/file.jpg

/yourfoldername/anotherfoldername/file.html

etc.



links would look like this:

My File link

instead of

My FIle Link
satbir
2016-12-17 20:00:54 UTC
What are you certainly attempting to comprise? the functionality comprise(); in very own homestead page calls which you could flow right into a variable. working example if i had to comprise an internet site referred to as variable.very own homestead page i'd use here code: comprise(variable.very own homestead page); If i became to comprise a record referred to as myfile.very own homestead page it particularly is in a sub-folder referred to as myfolder i'd use here code: comprise(myfolder/myfile.very own homestead page); If that would not artwork attempt putting quote marks (" ") the two area of the variable e.g. comprise("variable.very own homestead page"); or comprise("myfolder/myfile.very own homestead page"); ought to be of a few use to you. If now not examine via the resource (see under).
holla
2006-11-23 08:13:42 UTC
humm



create a directory for your site, in it put all your pages and the directories for the rest. it would be more simple.

heres a link about relative path anyway



http://72.14.209.104/search?q=cache:OP8vtYviVvEJ:webdesign.about.com/od/beginningtutorials/a/aa040502a.htm+link+relative+paths&hl=fr&gl=fr&ct=clnk&cd=2


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...