Tuesday, October 25, 2011

How to change my URL to relative paths?

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.How to change my URL to relative paths?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

%26lt;img src=%26quot;../images/image.jpg%26quot;%26gt;



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

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

%26lt;img src=%26quot;/images/mylogo.jpg%26quot;%26gt;

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

Some thing like

%26lt;img src=%26quot;http://www.mywebsite.com/images/myl?br>
for e.g you see the yahoo logo on top

its absolute path is %26lt;img src=%26quot;http://us.i1.yimg.com/us.yimg.com/i?br>


i hope i explained it correctly this time. lol.How to change my URL to relative paths?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?br>
etc.



links would look like this:

%26lt;a href=%26quot;/yourfoldername/file.html%26quot;%26gt;My File link%26lt;/a%26gt;

instead of

%26lt;a href=%26quot;C://Document and Settings/Name/My Documents...%26quot;%26gt;My FIle Link%26lt;/a%26gt;How to change my URL to relative paths?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:OP8v