Jack Killpatrick wrote:
> 
> Barry wrote:
> 
> > Thanks to all who replied to my post. But many of you are missing
> > the point
> > of what I was trying (apparently poorly :) to say. Here's another attempt.
> >
> > I have a new client. I ftp their site files to my local system. I go to
> > open a page, any page, and nearly all the images are broken and the links
> > don't work. I know I have all the files on my system in the same directory
> > structure as is on the server. With me so far?
> >
> > It turns out that the reason they don't work on my local system (which is
> > _not_ running a web server!) is that the paths are coded as
> > absolute paths.
> > So of course they don't work on my local drive.
> >
<<SNIP>>

> 
> Make sense?
> 
> Your other alternative is to do a search and replace on all files, replacing
> the absolute paths with relative paths. If you want to go that route, and
> need some tips, let me know.
> 
> Jack
> 
        All that Jack says basically applies to the Mac as well. You don't need
to have a server set up to replicate the paths on a Mac.  The starting
folder is defined and all files are in sub folders.  I use Cyberstudio
as my editor and it "Opens" the folder that is the "site".  From there,
it follows standard convention for relative path as Jack described; ie 
../images/image1.gif will go up on elevel and over to the folder
"images" and select the file "image1.gif".  Even using Netscape browser,
you can select the folder on disk and the start file and all files are
relative from that start point.

        If you need to change absolute to relative easily, start with the first
document (index.html) and work your way throught the folder structure
deleting the path references (http://www.xxxx.com/) before file name. 
Depending on the number of levels you go down, add ../ as appropriate
prior to the file name to work up the folder levels and the folder name
to move over one level.

        One caution that I have encontered is that even though file names can
contain spaces and special characters, avoid them as some web server
software will choke.
-- 

John Stewart
SUPSHIP San Diego
Information Systems Security Mgr
--------------------------------
____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to