HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Rewrite links internal/external
Author: Steve
Date: 03/01/2002 01:03
 
what i do is after the project is complete, run a 
perlscript over the archive which does some inline 
regexp pattern matching / replacing. Something like 
this:

s/(\.\.\/)
*external\.html/http://mysite.com/external.html/g;

My external page is essentially the same as the 
supplied one (ie: I make use of the 'link' parameter), 
but if I didn't want that, then something like this 
would do:

s/(\.\.\/)*external\.html\?link=/http://mysite.com/external.html/g;
 
Reply Create subthread


All articles

Subject Author Date
Rewrite links internal/external

02/28/2002 15:42
Re: Rewrite links internal/external

02/28/2002 22:21
Re: Rewrite links internal/external

03/01/2002 01:03
Re: Rewrite links internal/external

10/27/2003 17:04




b

Created with FORUM 2.0.11