Forum Moderators: open

Message Too Old, No Replies

Paths Problem

Converting root-relative to document-relative

         

jetson77

12:34 pm on Oct 11, 2003 (gmt 0)

10+ Year Member



I have a problem.

I have a website that I am trying to burn onto a cross platform CD ROM. The trouble is that the whole site is done in root-relative linking.

eg. /images/file.gif

I need to change the entire site to document-relative linking.

eg. ../../images/file.gif

The reason is that mac OS9 and mac OSX reads the root differently. OS9 reads the volume name as a directory.

eg. /volume/images/file.gif

So it breaks all the root-relative references.

Can anyone provide me a quick solution to solve this problem? Some software that does it perhaps?

DrDoc

7:32 pm on Oct 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Almost all editors that allow you to have multiple documents open simultaneously have some sort of "global" search and replace.

Just use that, search for "/images/" and replace with "../../images/"