HTTrack Website Copier
Free software offline browser - FORUM
Subject: Relative links, absolute links....
Author: Dan
Date: 04/07/2004 21:45
 
I mirrored a number of websites and, generally, httracker 
works perfectly.  One problem:  some pages do not have 
their links changed to relative.  

For example, running a 5 level mirror on 
<http://www.host.com/> :

www.host.com/index.html will have all its links, 
including "href" and "img src" changed to the correct 
relative links, while www.host.com/traders/expert1.html 
will have its links remain absolute.  So in index.html I 
will find <img src="images/pic1.gif"> but in expert1.html I 
will have <img 
src=http://www.host.com/images/pic1.html.  The same 
happens with the anchors, even though the files to which 
both links point were downloaded to the local drive.  
Generally, I end up using shell scripts (sed) to rewrite 
any such links once I move the site to my unix machine, but 
it would be better and safer if I could get httracker to do 
it initially.

What am I doing wrong?
 
Reply


All articles

Subject Author Date
Relative links, absolute links....

04/07/2004 21:45
Re: Relative links, absolute links....

04/07/2004 21:52




5

Created with FORUM 2.0.11