HTTrack Website Copier
Free software offline browser - FORUM
Subject: mirror a site and flatten directory structure
Author: Vic
Date: 01/26/2016 22:54
 
I am trying to mirror www.example.com. A lot of content is hosted on many
subdomains such as content.example.com and images.example.com. I am using the
following command, and see the following output.

$ httrack -w www.example.com --near --robots=0

/
|--www.example.com
|    |--index.html
|    |--etc
|--content.example.com
|    |--etc
|--images.example.com
|    |--images
|    |    |--image_00.jpg
|    |    |--image_00.jpg
|    |    |--etc
|--hts-log.txt
|--index.html

If I serve the resulting directory, my home page becomes
<http://www.example.com/www.example.com/index.html> and content in subdomains is
referenced with ../

I would like to flatten the directory structure so the mirrored page is more
like the original and content hosted on subdomains is not referenced with a
../ 
 
Reply


All articles

Subject Author Date
mirror a site and flatten directory structure

01/26/2016 22:54
Re: mirror a site and flatten directory structure

01/28/2016 20:29




6

Created with FORUM 2.0.11