Posted 11 April 2012 - 01:13 AM
A friend of mine who is a bit old school when it comes to building and managing his website (he edits his html docs in Word), contacted me today in a spot of bother. His webserver (a 1990's Sparcstation) went down, and he lost all his local files for his website. He was able to find backups from various time periods, and from various other locations (disks lying around), as well as large portions of the site from an archive somewhere on the net (WTF that archive is, I have no idea).
He has saved them all to a new local disk, but has the problem of links not working. I haven't had a look at the pages yet, but I am thinking most of the web links are absolute links and not relative, and because they are all drawn from different back-up sources, the links most likely all contain different references in the urls. I know in Dreamweaver you can via options, change absolute links to relative and vice versa, but in this case I am not 100% sure whether that is going to work. The job could be done manually, but there are hundreds, maybe thousands of pages involved, and manual editing is gonna be, I think the word I told him was "nightmare".
What I am wondering is if there is a DOS command script or something of the sort which you can run and it will search the pages and convert links to relative.
Yes I know, I have told him many times before that he needs to use some more modern website management software to run his site, but he's 60+ years old, a retired university professor, and has not progressed past the level of editing html in Word. He won't have a bar of it. I feel compelled to help the man as he was one of my professors, and he has an awesome mind within his field...but just not when it comes to keeping up with developments in website hosting.
Sometimes I think the surest sign that intelligent life exists elsewhere in the Universe is that none of it has tried to contact us...