HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: Mirroring problem
Author: Xavier Roche
Date: 03/26/2002 07:30
 
> How can I make mirror from eg. www.somehost.com to 
be 
> mirror.otherhost.com and to fix all links to point 
> from www.somehost.com to mirror.otherhost.com and to 
> make same directory structure like on 
www.somehost.com
> (without any other files except regular)?
Well, the best solution is to catch the complete 
www.somehost.com website, rebuilding all links with 
relative links - use filters to match exactly the site:
-* +www.somehost.com/*

..and then copy the filestructure to the remote 
mirror.otherhost.com mirror site. That's all.

After mirroring the first site, no reference to 
www.somehost.com should appear (EXCEPT formulars, 
which can not be "mirrored" as is) and therefore 
you'll have a working copy for mirror.otherhost.com.

You can optionnally filter some cgi's which may cause 
problems, too (example: dynamic news pages from the 
first site which should be kept as is) using filters, 
remove the footer information (Options/Browser ID/HTML 
Footer) (note: not advised for a mirror) and even 
adapt the filestructure as you wish.

(Note: You can then re-mirror mirror.otherhost.com and 
use 'absolute url'/'absolute url' in Options/Experts 
Only/Rewrite Links, if you absolutely want all URLs to 
be written with absolute links (http://..) - but this 
is really not advised)
 
Reply Create subthread


All articles

Subject Author Date
Mirroring problem

03/26/2002 05:08
Re: Mirroring problem

03/26/2002 07:30




d

Created with FORUM 2.0.11