HTTrack Website Copier
Free software offline browser - FORUM
Subject: How to rename .htm to .html using commandline
Author: Johnathan
Date: 09/13/2006 07:53
 
Greetings,

I am trying to use (without success) httrack (command line) to mirror a site
which uses .htm files, yet save the local mirror files (and change existing
links from .htm to .html) with a .html extension.

Here is the command I have been trying to run:

httrack -qwC2%Ps2u1%s%uN0%I0p3DaK0H0%kf2A25000%f#f --assume *.htm=text/html -F
"Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)" -%F "<\!-- Mirrored from
%s%s by HTTrack Website Copier/3.\x [XR&CO'2006], %s -->" -%l "en, en, *"
example.com -O "/tmp/alt" -*.png -*.gif -*.jpg +*.css +*.js -*.pdf -*.PDF
-*.jpeg -*.jpg -*.JPEG -*.JPG -*.wmv -yimg.com/* -ad.doubleclick.net/*
-mime:application/foobar

I have been tasked to script this mirror using bash / linux.

Yet while experimenting with the windows httrack gui version I have found that
this (conversion from .htm to .html in local mirror filenames and relative
page links within a page) appears to be a default option (only in the windows
gui).

I am hoping (against all odds) that someone can reply with an example command
line  httrack command (with options) which will rename the .htm page files and
links in the local mirrored copy the way the windows version does.

I've spent several hours searching, reading and testing various httrack
options to no avail. I reach out to others using httrack to guide me to a
working solution.

As always, thank you for releasing httrack as 'free software'.

respectfully,
//user0
OSC - Speaker for the Dead
 
Reply


All articles

Subject Author Date
How to rename .htm to .html using commandline

09/13/2006 07:53
Re: How to rename .htm to .html using commandline

09/19/2006 05:34
Re: How to rename .htm to .html using commandline

09/19/2006 05:34




7

Created with FORUM 2.0.11