HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: mirror a site and flatten directory structure
Author: Vic
Date: 01/28/2016 20:29
 
I solved this by replacing all links to ../subdomain.example.com with
./subdomain.acteon.net and moving the subdomain directories into the main
websites directory. I feel like there's probably some way to do this natively
but I just couldn't figure it out. If this is true and there's a better
solution I'd like to know.

$ cd ./www.example.com
$ find ./ -type f -exec sed -i -e
's/\.\.\/content\.example\.com/\.\/contnet\.example\.com/g' {} \;
$ find ./ -type f -exec sed -i -e
's/\.\.\/images\.example\.com/\.\/images\.example\.com/g' {} \;
$ mv ../*.example.com ./
 
Reply Create subthread


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




7

Created with FORUM 2.0.11