Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: Sabertooth; Sir Gawain
OUch!!! My eyes are bleedin'. Damn, Gawain.

Saber,

Relative paths are "relative" to the document root of the server. i. e. ../mypix/vacationpix/bermuda.jpg. They are easy to move from server to server. But, if you copy that page to anyplace else, ../mypix/vacationpix/bermuda.jpg won't exist unless you used something like webcopy to move all the directives, recursively.

Absolute references have the domain and server path in the URL, i. e. http://www.mydomain.com/mypix/vacationpix/bermuda.jpg.

They will basically work from anywhere.

22 posted on 08/21/2002 11:32:42 PM PDT by Bandolier
[ Post Reply | Private Reply | To 13 | View Replies ]


To: Bandolier; KayEyeDoubleDee; zapiks44
Relative paths are "relative" to the document root of the server. i. e. ../mypix/vacationpix/bermuda.jpg. They are easy to move from server to server. But, if you copy that page to anyplace else, ../mypix/vacationpix/bermuda.jpg won't exist unless you used something like webcopy to move all the directives, recursively.

Absolute references have the domain and server path in the URL, i. e. http://www.mydomain.com/mypix/vacationpix/bermuda.jpg.

They will basically work from anywhere.

OK, I'd figured that stuff out, just didn't know they were called "realtive paths."

I copy my source code onto a MS Word doc, and then do a find/replace to fix all the URLs on the graphics and links. Is there a better way?




23 posted on 08/21/2002 11:40:39 PM PDT by Sabertooth
[ Post Reply | Private Reply | To 22 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson