I hate absolute links.

notfred

Lifer
Feb 12, 2001
38,241
4
0
I've gota bunch of webpages here on my site. I'm been doing some redesigning and updating here (I jsut started here a few weeks ago, it was someone else's site before that)

Anyway, there's a whole bunch of images that are linked to "http://ca.water.usugs.gov/stuff/image/etc" rather than "../images/file"

And it's rally annoying.....


899 more broken links to fix...... (not too bad, considering I started with over 6000).
 

kranky

Elite Member
Oct 9, 1999
21,019
156
106
Can't you use awk or sed to make the same edit to all the HTML files in batch mode?
 

Aves

Lifer
Feb 7, 2001
12,232
30
101
I know what you mean.

One of the first things my instructor taught us in web design was to use relative paths rather than absolute whenever possible.

At least the end is in sight for you. Good luck! :)
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
I could probably set up some kind of batch replacement, but it'd be more work than it's worth, since there's a bunch of other things I have to fix besides jsut broken images, and the files arent all in the same directory, meannig that they new links have differing amounts of ../ in front of them.

819 to go....