HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: *-2.html files created (yes, I have read the FAQ)
Author: Xavier Roche
Date: 04/22/2002 21:00
 
> The FAQ has a question about the '*-2.html' files 
> created during the mirror.
> I'm not using any custom build options, just the 
> defaults.
> Is there any way to turn off the creation of these 
> files?
This is in fact a protection against collisions - for 
example:
www.foo.com/index.html
AND
www.foo.com/Index.html

can both exist at the same time on Unix systems, but 
NOT on windows systems, as files are case insensitive. 
In this case, these two files will be saved 
as 'index.html' and 'index-2.html'

You may also have (this is the most common case)
www.foo.com/
AND
www.foo.com/index.html

but the engine can not 'know' that these files are 
identical (the default / file could be default.html or 
default.php or gnzypw.gif)

Therefore, the engine may have to rename some files, 
into <name>-2.html, and there isn't any realy trick to 
avoid that. If you have multiple files with query 
strings, the engine will automatically generate a 
pseudo-random string added to the end of the name, but 
in your case this is impossible.
 
Reply Create subthread


All articles

Subject Author Date
*-2.html files created (yes, I have read the FAQ)

04/22/2002 19:40
Re: *-2.html files created (yes, I have read the FAQ)

04/22/2002 21:00
Re: *-2.html files created (yes, I have read the F

05/01/2006 14:59
Re: *-2.html files created (yes, I have read the F

05/01/2006 15:02




6

Created with FORUM 2.0.11